コード例 #1
0
ファイル: ModalWindow.cs プロジェクト: Nashet/BallsTest
 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");
 }