private static void fighterDeathHandler(object sender, DeathEventArgs dea) { var fighter = (Fighter)sender; Console.WriteLine("{0} died", fighter.Name); hitAgain = false; }
private void fighterDeathHandler(object sender, DeathEventArgs dea) { Console.WriteLine("Wife of {0} is lamenting his death", Fighter.Name); Fighter.Death -= fighterDeathHandler; }