/// <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(); }
public void On_Attack_Timeout() { if (CloseEnemies.Count > 0) { this.Attack(); this.AttackTimer.Start(AttackDelay); } else { Attacking = false; AttackTimer.Stop(); } }