Beispiel #1
0
 private void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     Instance = this;
     DontDestroyOnLoad(this.gameObject);
 }
Beispiel #2
0
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master>();
 }
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("Game Manager").GetComponent <GameManager_Master>();
 }