示例#1
0
 public override void Execute()
 {
     //Debugger.LogError(animName);
     if (isCrossFade)
     {
         AnimatorUtil.CrossFade(character.anim, stateNameHash, crossFadeTime);
     }
     else
     {
         AnimatorUtil.Play(character.anim, stateNameHash, 0, normalizedTime);
     }
     //actioner.anim.SetTrigger(animName);
     finish = true;
 }
示例#2
0
 public override void Execute()
 {
     if (!character)
     {
         return;
     }
     if (!character.anim)
     {
         return;
     }
     AnimatorUtil.CrossFade(character.anim, stateNameHash, 0.05f);
     character.anim.speed = 1.2f;
     FightController.instance.Move(character.transform, endPos, moveTime, () =>
     {
         character.anim.speed = 1f;
         AnimatorUtil.SetTrigger(character.anim, AnimatorUtil.ENDRUN);
         FinishAction();
         finish = true;
     });
 }