示例#1
0
 public override void PlayJumpAnimation()
 {
     if (animatorType == AnimatorType.LegacyAnimtion)
     {
         CrossFadeLegacyAnimation(legacyAnimationData.jumpClip, legacyAnimationData.jumpClipFadeLength);
         return;
     }
     CacheAnimator.ResetTrigger(ANIM_JUMP);
     CacheAnimator.SetTrigger(ANIM_JUMP);
 }
示例#2
0
 public override void PlayHurtAnimation()
 {
     if (animatorType == AnimatorType.LegacyAnimtion)
     {
         CrossFadeLegacyAnimation(legacyAnimationData.hurtClip, legacyAnimationData.hurtClipFadeLength);
         return;
     }
     CacheAnimator.ResetTrigger(ANIM_HURT);
     CacheAnimator.SetTrigger(ANIM_HURT);
 }
示例#3
0
    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;
        }
    }
示例#4
0
 public void PlayPlacedAnimation()
 {
     CurrentState = State.Idle;
     CacheAnimator.SetTrigger(placedTriggerName);
 }