Пример #1
0
 protected void OnKilled(OnKilledEventArgs eventArgs)
 {
     EventHandler<OnKilledEventArgs> handler = this.Killed;
     handler?.Invoke(this, eventArgs);
 }
Пример #2
0
 private void EnemyKilled(object sender, OnKilledEventArgs e)
 {
     this.player.Money += e.MoneyAward;
     this.player.Score += e.ScoreAward;
     this.enemyFactory.GeneratedeEnemies.Remove(sender as Enemy);
 }