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