Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         SystemLogger.write("Pickup Cache Instantiated On: " + this.gameObject.name);
     }
     else
     {
         Destroy(this);
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if(Instance == null)
     {
         Instance = this;
         SystemLogger.write("Pickup Cache Instantiated On: " + this.gameObject.name);
     }
     else
     {
         Destroy(this);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Used to initialize the cache
 /// </summary>
 void Start()
 {
     cache = PickupCache.Instance;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Used to initialize the cache
 /// </summary>
 void Start()
 {
     cache = PickupCache.Instance;
 }