Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    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);
    }
Exemplo n.º 4
0
    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;
    }
Exemplo n.º 5
0
 public TweenLerp <TYPE> CreateTween <TYPE>(TYPE start, TYPE end, TweenLerp <TYPE> .Lerp lerpfn)
 {
     return(new TweenLerp <TYPE>(start, end, lerpfn, this));
 }
Exemplo n.º 6
0
 public SimpleTween(TweenLerp <TYPE> .Lerp lerpfn)
 {
     this.lerpfn   = lerpfn;
     this.onUpdate = null;
 }