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