public void CompletedAllTutorials() { explanationText.text = ""; //LevelManager.Instance.SetTutorialFinished(); instance = null; transform.gameObject.SetActive(false); }
private void Awake() { if (instance != null) { Destroy(this.gameObject); } else { instance = this; } }
void Awake() { curr_gameflow = this; if (main == null) { main = this; } else { Destroy(this); } }
// Singleton structure private void Awake() { GameStarted = false; GameEnded = false; if (GFM == null) { GFM = this; DontDestroyOnLoad(this.gameObject); } else { if (GFM != null) { Destroy(GFM.gameObject); } } PV = GetComponent <PhotonView>(); }