Inheritance: MonoBehaviour
示例#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;
 }
示例#4
0
 /// <summary>
 /// Used to initialize the cache
 /// </summary>
 void Start()
 {
     cache = PickupCache.Instance;
 }