Exemplo n.º 1
0
 public LTDescr setEaseSpring()
 {
     this.tweenType = LeanTweenType.easeSpring; this.easeMethod = this.easeSpring; return this;
 }
Exemplo n.º 2
0
 public LTDescr setEaseOutSine()
 {
     this.tweenType = LeanTweenType.easeOutSine; this.easeMethod = this.easeOutSine; return this;
 }
Exemplo n.º 3
0
 public LTDescr setEaseShake()
 {
     this._optional.animationCurve = LeanTween.shake; this.toInternal.x = this.from.x + this.to.x; this.easeMethod = this.tweenOnCurve; return this;
 }
Exemplo n.º 4
0
 public LTDescr setEaseOutExpo()
 {
     this.tweenType = LeanTweenType.easeOutExpo; this.easeMethod = this.easeOutExpo; return this;
 }
Exemplo n.º 5
0
 public LTDescr setEaseOutQuint()
 {
     this.tweenType = LeanTweenType.easeOutQuint; this.easeMethod = this.easeOutQuint; return this;
 }
Exemplo n.º 6
0
 public LTDescr setEaseOutBack()
 {
     this.tweenType = LeanTweenType.easeOutBack; this.easeMethod = this.easeOutBack; return this;
 }
Exemplo n.º 7
0
 public LTDescr setEaseOutElastic()
 {
     this.tweenType = LeanTweenType.easeOutElastic; this.easeMethod = this.easeOutElastic; return this;
 }
Exemplo n.º 8
0
 public LTDescr setEaseInQuart()
 {
     this.tweenType = LeanTweenType.easeInQuart; this.easeMethod = this.easeInQuart; return this;
 }
Exemplo n.º 9
0
 public LTDescr setEaseLinear()
 {
     this.tweenType = LeanTweenType.linear; this.easeMethod = this.easeLinear; return this;
 }
Exemplo n.º 10
0
 public LTDescr setEaseInOutQuad()
 {
     this.tweenType = LeanTweenType.easeInOutQuad; this.easeMethod = this.easeInOutQuad; return this;
 }
Exemplo n.º 11
0
 public LTDescr setEaseInOutCubic()
 {
     this.tweenType = LeanTweenType.easeInOutCubic; this.easeMethod = this.easeInOutCubic; return this;
 }
Exemplo n.º 12
0
 public LTDescr setEaseInOutBounce()
 {
     this.tweenType = LeanTweenType.easeInOutBounce; this.easeMethod = this.easeInOutBounce; return this;
 }
Exemplo n.º 13
0
 /**
 * Set the type of easing used for the tween with a custom curve. <br>
 * @method setEase (AnimationCurve)
 * @param {AnimationCurve} easeDefinition:AnimationCurve an <a href="http://docs.unity3d.com/Documentation/ScriptReference/AnimationCurve.html" target="_blank">AnimationCure</a> that describes the type of easing you want, this is great for when you want a unique type of movement
 * @return {LTDescr} LTDescr an object that distinguishes the tween
 * @example
 * LeanTween.moveX(gameObject, 5f, 2.0f ).setEase( LeanTweenType.easeInBounce );
 */
 public LTDescr setEase( AnimationCurve easeCurve )
 {
     this._optional.animationCurve = easeCurve;
     this.easeMethod = this.tweenOnCurve;
     this.tweenType = LeanTweenType.animationCurve;
     return this;
 }
Exemplo n.º 14
0
    public void reset()
    {
        this.toggle = this.useRecursion = this.usesNormalDt = true;
        this.trans = null;
        this.passed = this.delay = this.lastVal = 0.0f;
        this.hasUpdateCallback = this.useEstimatedTime = this.useFrames = this.hasInitiliazed = this.onCompleteOnRepeat = this.destroyOnComplete = this.onCompleteOnStart = this.useManualTime = this.hasExtraOnCompletes = false;
        this.tweenType = LeanTweenType.linear;
        this.loopType = LeanTweenType.once;
        this.loopCount = 0;
        this.direction = this.directionLast = this.overshoot = this.scale = 1.0f;
        this.period = 0.3f;
        this.speed = -1f;
        this.easeMethod = this.easeLinear;
        this._optional.reset();

        global_counter++;
        if(global_counter>0x8000)
            global_counter = 0;
    }