protected void Awake() { //singleton pattern if (Instance == null) { Instance = this; } else { Debug.Log("Singleton object already created. Exterminating " + this); Destroy(this); } Hide(); }
protected void OnTimeLeft() { ModalWindow.Show("Game is over\n You achieved " + PlayerScores + " Scores"); }