Inheritance: UnityEngine.MonoBehaviour
Esempio n. 1
0
 private void Awake()
 {
     if (Instance)
     {
         Destroy(Instance);
     }
     Instance = this;
 }
Esempio n. 2
0
 void Awake()
 {
     if (instance)
     {
         Destroy(instance);
     }
     instance = this;
 }
Esempio n. 3
0
 void Awake()
 {
     if(instance)
     {
         Destroy(instance);
     }
     instance = this;
 }