Ejemplo n.º 1
0
 internal void Notify(AttackAnimationsFinished e)
 {
     if (State.RemainingHealth <= 0 && !State.IsDeceased)
     {
         State.IsDeceased = true;
         EventQueue.Instance.Add(new CharacterDeceased {
             Victim = e.Target, Killer = e.Attacker
         });
     }
 }
Ejemplo n.º 2
0
 private void CheckForDeath(AttackAnimationsFinished e) => e.Target.Notify(e);