Exemple #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
 void Awake()
 {
     gemBooleans = GameObject.Find("NonSceneDependent").GetComponent <NonSceneDependent>();
 }