예제 #1
0
        public static int GetAnimSpecialType(AnimSpecials i)
        {
            int r = 0;

            switch (i)
            {
            case AnimSpecials.runToStop:
                r = 11;
                break;

            case AnimSpecials.run:
                r = 10;
                break;

            case AnimSpecials.jump_idle:
                r = 21;
                break;

            case AnimSpecials.run_jump:
                r = 22;
                break;

            default:
                break;
            }

            return(r);
        }
예제 #2
0
        public static int GetAnimSpecialType(AnimSpecials pSpecialAnim)
        {
            int InID = 0;

            switch (pSpecialAnim)
            {
            case AnimSpecials.E_RunToStop:
                InID = 11;
                break;

            case AnimSpecials.E_Run:
                InID = 10;
                break;

            case AnimSpecials.E_Jump_Idle:
                InID = 21;
                break;

            case AnimSpecials.E_Run_Jump:
                InID = 22;
                break;

            default:
                break;
            }
            return(InID);
        }
예제 #3
0
        public void PlayAnimSpecial(AnimSpecials t, bool sptrue = true)
        {
            int n = Statics.GetAnimSpecialType(t);

            states.anim.SetBool(Statics.special, sptrue);
            states.anim.SetInteger(Statics.specialType, n);
            StartCoroutine(CloseSpecialOnAnim(0.4f));
        }
        public void PlayAnimSpecial(AnimSpecials pAnimSpecial, bool pIsSpecial = true)
        {
            int InType = GAMEVAR.GetAnimSpecialType(pAnimSpecial);

            mStateManager.mAnimator.SetBool(GAMEVAR.special, pIsSpecial);
            mStateManager.mAnimator.SetInteger(GAMEVAR.specialType, InType);
            StartCoroutine(CloseSpecialOnAnim(0.4f));
        }
예제 #5
0
파일: Statics.cs 프로젝트: Cihyuu/Caimbria
    public static int GetAnimSpecialType(AnimSpecials i)
    {
        int r = 0;

        switch (i)
        {
        case AnimSpecials.runToStop:
            r = 11;
            break;

        default:
            break;
        }
        return(r);
    }