Наследование: UnityEngine.MonoBehaviour
Пример #1
0
 private void Awake()
 {
     if (Instance)
     {
         Destroy(Instance);
     }
     Instance = this;
 }
Пример #2
0
 void Awake()
 {
     if (instance)
     {
         Destroy(instance);
     }
     instance = this;
 }
Пример #3
0
 void Awake()
 {
     if(instance)
     {
         Destroy(instance);
     }
     instance = this;
 }