コード例 #1
0
 /// <summary>
 /// Manages what happens when the game is done
 /// </summary>
 private void EndOfGame()
 {
     AttackTimer.Stop();
     ShowEndWarTextImage();
     WinnerAnnouncement();
     WinnerSound();
     //new ManualResetEvent(false).WaitOne(5000);
     //Application.Exit();
 }
コード例 #2
0
 public void On_Attack_Timeout()
 {
     if (CloseEnemies.Count > 0)
     {
         this.Attack();
         this.AttackTimer.Start(AttackDelay);
     }
     else
     {
         Attacking = false;
         AttackTimer.Stop();
     }
 }