public void Activate(List <Character> targets, TargetedAnimation animation, System.Action finishedAbility) { callback = finishedAbility; numToAttack = targets.Count; targets.ForEach((t) => { animation.Play(t, Finished, () => Hit(t)); }); }
void HandleMove(Character t, TargetedAnimation animation) { if (whereToMove == WhereToMove.ToOppositeSpot) { t.IsInMelee = !t.IsInMelee; } else { t.IsInMelee = whereToMove == WhereToMove.ToMelee; } animation.Play(t, Finished, () => { }); }
public void Activate(List <Character> targets, TargetedAnimation animation, System.Action finishedAbility) { callback = finishedAbility; animation.Play(targets[0], FinishedAnim, () => ResolveHits(targets)); }