// Token: 0x06002A76 RID: 10870 RVA: 0x0046EC60 File Offset: 0x0046CE60 private static float easeInBounce(float start, float end, float value) { end -= start; float num = 1f; return(end - EaseManager.easeOutBounce(0f, end, num - value) + start); }
// Token: 0x06002A78 RID: 10872 RVA: 0x0046ED34 File Offset: 0x0046CF34 private static float easeInOutBounce(float start, float end, float value) { end -= start; float num = 1f; if (value < num / 2f) { return(EaseManager.easeInBounce(0f, end, value * 2f) * 0.5f + start); } return(EaseManager.easeOutBounce(0f, end, value * 2f - num) * 0.5f + end * 0.5f + start); }
// 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)); } }