示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(KeyCode.Space))
     {
         GlobalStats.Level++;
         Application.LoadLevel("Stage " + GlobalStats.Level);
         if (GlobalStats.Level == 3)
         {
             GameplayGlobals.RestartGame();
             GlobalStats.ResetStats();
         }
         else
         {
             GameplayGlobals.RestartGameplay();
         }
     }
 }
示例#2
0
 public void Init(GameplayGlobalsWindow window)
 {
     Window        = window;
     Asset         = window.Asset;
     DefaultValues = Asset.DefaultValues;
 }