コード例 #1
0
    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));
        });
    }
コード例 #2
0
 void HandleMove(Character t, TargetedAnimation animation)
 {
     if (whereToMove == WhereToMove.ToOppositeSpot)
     {
         t.IsInMelee = !t.IsInMelee;
     }
     else
     {
         t.IsInMelee = whereToMove == WhereToMove.ToMelee;
     }
     animation.Play(t, Finished, () => { });
 }
コード例 #3
0
    public void Activate(List <Character> targets, TargetedAnimation animation, System.Action finishedAbility)
    {
        callback = finishedAbility;

        animation.Play(targets[0], FinishedAnim, () => ResolveHits(targets));
    }