Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (state == State.SETUP)
     {
         if (Input.GetKeyDown(Controls.player_attack1))
         {
             player.EnablePlayer(this, mgParticle);
             boss.EnableBoss();
             state = State.PLAYING;
             panelGame.HideText();
         }
     }
     else if (state == State.PLAYING)
     {
     }
     else if (state == State.ENDING)
     {
         if (Time.time < cdEnd)
         {
             return;
         }
         if (Input.GetKeyDown(Controls.player_attack1))
         {
             panelGame.HideText();
             StartLevel(data);
         }
         else if (Input.GetKeyDown(Controls.player_jump))
         {
             panelGame.HideText();
             mgPanel.Back();
         }
     }
 }
Beispiel #2
0
 public void DeleteBoss()
 {
     mgDialog.DisplayYesNo("Are you sure?",
                           delegate {
         mgPanel.Back();
         mgData.DeleteFile(boss.GetPath());
     },
                           delegate {
     });
 }
Beispiel #3
0
 public void DeleteAttack()
 {
     mgDialog.DisplayYesNo("Are you sure?",
                           delegate {
         mgEditBoss.DeleteAttack(attack);
         mgPanel.Back();
     },
                           delegate {
     });
 }