Пример #1
0
        // Token: 0x06002A80 RID: 10880 RVA: 0x0046F174 File Offset: 0x0046D374
        public static float EasingFromType(float start, float end, float t, EaseType type)
        {
            switch (type)
            {
            case EaseType.easeInQuad:
                return(EaseManager.easeInQuad(start, end, t));

            case EaseType.easeOutQuad:
                return(EaseManager.easeOutQuad(start, end, t));

            case EaseType.easeInOutQuad:
                return(EaseManager.easeInOutQuad(start, end, t));

            case EaseType.easeInCubic:
                return(EaseManager.easeInCubic(start, end, t));

            case EaseType.easeOutCubic:
                return(EaseManager.easeOutCubic(start, end, t));

            case EaseType.easeInOutCubic:
                return(EaseManager.easeInOutCubic(start, end, t));

            case EaseType.easeInQuart:
                return(EaseManager.easeInQuart(start, end, t));

            case EaseType.easeOutQuart:
                return(EaseManager.easeOutQuart(start, end, t));

            case EaseType.easeInOutQuart:
                return(EaseManager.easeInOutQuart(start, end, t));

            case EaseType.easeInQuint:
                return(EaseManager.easeInQuint(start, end, t));

            case EaseType.easeOutQuint:
                return(EaseManager.easeOutQuint(start, end, t));

            case EaseType.easeInOutQuint:
                return(EaseManager.easeInOutQuint(start, end, t));

            case EaseType.easeInSine:
                return(EaseManager.easeInSine(start, end, t));

            case EaseType.easeOutSine:
                return(EaseManager.easeOutSine(start, end, t));

            case EaseType.easeInOutSine:
                return(EaseManager.easeInOutSine(start, end, t));

            case EaseType.easeInExpo:
                return(EaseManager.easeInExpo(start, end, t));

            case EaseType.easeOutExpo:
                return(EaseManager.easeOutExpo(start, end, t));

            case EaseType.easeInOutExpo:
                return(EaseManager.easeInOutExpo(start, end, t));

            case EaseType.easeInCirc:
                return(EaseManager.easeInCirc(start, end, t));

            case EaseType.easeOutCirc:
                return(EaseManager.easeOutCirc(start, end, t));

            case EaseType.easeInOutCirc:
                return(EaseManager.easeInOutCirc(start, end, t));

            case EaseType.linear:
                return(EaseManager.linear(start, end, t));

            case EaseType.spring:
                return(EaseManager.spring(start, end, t));

            case EaseType.easeInBounce:
                return(EaseManager.easeInBounce(start, end, t));

            case EaseType.easeOutBounce:
                return(EaseManager.easeOutBounce(start, end, t));

            case EaseType.easeInOutBounce:
                return(EaseManager.easeInOutBounce(start, end, t));

            case EaseType.easeInBack:
                return(EaseManager.easeInBack(start, end, t));

            case EaseType.easeOutBack:
                return(EaseManager.easeOutBack(start, end, t));

            case EaseType.easeInOutBack:
                return(EaseManager.easeInOutBack(start, end, t));

            case EaseType.easeInElastic:
                return(EaseManager.easeInElastic(start, end, t));

            case EaseType.easeOutElastic:
                return(EaseManager.easeOutElastic(start, end, t));

            case EaseType.easeInOutElastic:
                return(EaseManager.easeInOutElastic(start, end, t));

            default:
                return(EaseManager.linear(start, end, t));
            }
        }