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; }
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; }); }