コード例 #1
0
 public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p)
 {
     if (battleAnimationSequence.Sucessful)
     {
         (active as Enemy).Health.Heal(heal);
     }
     hero.TakeDamage(this, battleAnimationSequence.Sucessful);
     p?.Invoke();
 }
コード例 #2
0
 public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p)
 {
     hero.Health.TakeDamage(Damage);
     p.Invoke();
 }
コード例 #3
0
 public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p)
 {
     hero.TakeDamage(this, battleAnimationSequence.Sucessful);
     p?.Invoke();
 }