public void SetBool(ANIMATIONS p_animation, bool p_val)
    {
        m_currentAnimation   = p_animation;
        m_currentlyAnimating = p_val;

        m_animator.SetBool(m_animationStringDicitonary[p_animation], p_val);
    }
예제 #2
0
        public void Play(ANIMATIONS animation)
        {
            switch (animation)
            {
            case ANIMATIONS.RESTART:
            case ANIMATIONS.DEATH:
                clip = animation;
                animator.SetTrigger("Restart");
                break;

            case ANIMATIONS.HUB_ON_SUCCESS:
            case ANIMATIONS.LEVEL_ENTRY:
            case ANIMATIONS.NEXT_LEVEL:
                clip = animation;
                animator.SetTrigger("Next");
                break;

            case ANIMATIONS.GAME_OVER:
                clip = animation;
                animator.SetTrigger("GameOver");
                break;

            default:
                break;
            }
        }
 public AnimationSequence CreateAnimation(ANIMATIONS type)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public void Reset()
 {
     isIdle = isDone = idlingDone = false;
     clip   = ANIMATIONS.NONE;
 }