forked from TheMysticSword/MysticsRisky2Utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrotherInfection.cs
52 lines (48 loc) · 1.5 KB
/
BrotherInfection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace MysticsRisky2Utils
{
public static class BrotherInfection
{
private static GameObject _white;
public static GameObject white
{
get
{
if (_white == null)
_white = Addressables.LoadAssetAsync<GameObject>("RoR2/Base/Brother/ItemInfection, White.prefab").WaitForCompletion();
return _white;
}
}
private static GameObject _green;
public static GameObject green
{
get
{
if (_green == null)
_green = Addressables.LoadAssetAsync<GameObject>("RoR2/Base/Brother/ItemInfection, Green.prefab").WaitForCompletion();
return _green;
}
}
private static GameObject _red;
public static GameObject red
{
get
{
if (_red == null)
_red = Addressables.LoadAssetAsync<GameObject>("RoR2/Base/Brother/ItemInfection, Red.prefab").WaitForCompletion();
return _red;
}
}
private static GameObject _blue;
public static GameObject blue
{
get
{
if (_blue == null)
_blue = Addressables.LoadAssetAsync<GameObject>("RoR2/Base/Brother/ItemInfection, Blue.prefab").WaitForCompletion();
return _blue;
}
}
}
}