private void BackToNormal() { this.tweenScaleX.Reset(0.2f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(this.tweenScaleXValue.Value, 1f); this.tweenScaleY.Reset(0.2f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(this.tweenScaleYValue.Value, 1f); }
private void punchTweenReady() { this.tweenScaleX.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(1f, 1.1f); this.tweenScaleY.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(1f, 1.1f); }
private void JellyTweenReady() { this.tweenScaleX.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(1f, 1.248f); this.tweenScaleY.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(1f, 0.904f); }
private IEnumerator JellyTweenStart() { this.tweenScaleX.Reset(0.1f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(1.248f, 0.92f); this.tweenScaleY.Reset(0.1f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(0.904f, 1.12f); yield return(StartCoroutine(this.WaitForRealSeconds(0.15f))); this.tweenScaleX.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(0.92f, 1.112f); this.tweenScaleY.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(1.12f, 0.888f); yield return(StartCoroutine(this.WaitForRealSeconds(0.15f))); this.tweenScaleX.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(1.112f, 0.944f); this.tweenScaleY.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(0.904f, 1f); yield return(StartCoroutine(this.WaitForRealSeconds(0.15f))); this.tweenScaleX.Reset(0.2f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(0.944f, 1.04f); this.tweenScaleY.Reset(0.2f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(1f, 0.976f); yield return(StartCoroutine(this.WaitForRealSeconds(0.2f))); this.tweenScaleX.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleXValue = this.tweenScaleX.CreateTween(1.04f, 1f); this.tweenScaleY.Reset(0.15f, EasingObject.LinearEasing); this.tweenScaleYValue = this.tweenScaleY.CreateTween(0.976f, 1f); yield break; }
public TweenLerp <TYPE> CreateTween <TYPE>(TYPE start, TYPE end, TweenLerp <TYPE> .Lerp lerpfn) { return(new TweenLerp <TYPE>(start, end, lerpfn, this)); }
public SimpleTween(TweenLerp <TYPE> .Lerp lerpfn) { this.lerpfn = lerpfn; this.onUpdate = null; }