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