Exemplo n.º 1
0
 public void OnEnemyShipDeath(IEventSender sender, EnemyShipDeathEvent ev)
 {
     if (ev.ship == finalShip)
     {
         this.Send(new GameWonEvent());
     }
 }
Exemplo n.º 2
0
 public void OnEnemyShipDeath(IEventSender sender, EnemyShipDeathEvent ev)
 {
     score += ev.ship.scoreGain;
     this.Send(new ScoreChangedEvent(score));
 }
Exemplo n.º 3
0
 public void OnEnemyShipDeath(IEventSender sender, EnemyShipDeathEvent ev)
 {
     PlayExplosionSoundEffect();
 }