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; }