Example #1
0
        protected virtual void OnMineExploded(MineExplodedEventArgs e)
        {
            EventHandler <MineExplodedEventArgs> handler = RaiseMineExplodedEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
 private void Game_RaiseMineExplodedEvent(object sender, MineExplodedEventArgs e)
 {
     State = GameState.ExplosionInProgress;
     Player.LoseALife();
 }