void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         _instance = this;
     }
 }
Example #2
0
 void Awake()
 {
     if (_instance != null && _instance != this) {
         Destroy(this.gameObject);
         return;
     } else {
         _instance = this;
     }
 }
Example #3
0
 public void OnApplicationQuit()
 {
     _instance = null;
 }
 public void OnApplicationQuit()
 {
     _instance = null;
 }