Пример #1
0
 private void Awake() {
     if (_instance != null && _instance != this) {
         Destroy(this.gameObject);
     } else {
         _instance = this;
     }
 }
Пример #2
0
 public SingletonHelper()
 {
     Instantiator = GameInstantiator.getInstance;
     Game         = GameManager.getInstance;
 }