private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Пример #2
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
Пример #3
0
 private void Awake()
 {
     canvasManager = transform.parent.GetComponent <CanvasManagerScript>();
 }
Пример #4
0
 void Awake()
 {
     instance = this;
 }