private void MakeSingleton()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
Esempio n. 2
0
 void SetInitialReferences()
 {
     joustGameManagerMaster = GetComponent <JoustGameManager_Master>();
 }