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