public override void PlayJumpAnimation() { if (animatorType == AnimatorType.LegacyAnimtion) { CrossFadeLegacyAnimation(legacyAnimationData.jumpClip, legacyAnimationData.jumpClipFadeLength); return; } CacheAnimator.ResetTrigger(ANIM_JUMP); CacheAnimator.SetTrigger(ANIM_JUMP); }
public override void PlayHurtAnimation() { if (animatorType == AnimatorType.LegacyAnimtion) { CrossFadeLegacyAnimation(legacyAnimationData.hurtClip, legacyAnimationData.hurtClipFadeLength); return; } CacheAnimator.ResetTrigger(ANIM_HURT); CacheAnimator.SetTrigger(ANIM_HURT); }
public void PlayHurtAnimation() { switch (animatorType) { case AnimatorType.Animator: CacheAnimator.ResetTrigger(ANIM_HURT); CacheAnimator.SetTrigger(ANIM_HURT); break; case AnimatorType.LegacyAnimtion: CrossFadeLegacyAnimation(legacyAnimationData.hurtClip, legacyAnimationData.hurtClipFadeLength); break; } }
public void PlayPlacedAnimation() { CurrentState = State.Idle; CacheAnimator.SetTrigger(placedTriggerName); }