public LTDescr setEaseSpring() { this.tweenType = LeanTweenType.easeSpring; this.easeMethod = this.easeSpring; return this; }
public LTDescr setEaseOutSine() { this.tweenType = LeanTweenType.easeOutSine; this.easeMethod = this.easeOutSine; return this; }
public LTDescr setEaseShake() { this._optional.animationCurve = LeanTween.shake; this.toInternal.x = this.from.x + this.to.x; this.easeMethod = this.tweenOnCurve; return this; }
public LTDescr setEaseOutExpo() { this.tweenType = LeanTweenType.easeOutExpo; this.easeMethod = this.easeOutExpo; return this; }
public LTDescr setEaseOutQuint() { this.tweenType = LeanTweenType.easeOutQuint; this.easeMethod = this.easeOutQuint; return this; }
public LTDescr setEaseOutBack() { this.tweenType = LeanTweenType.easeOutBack; this.easeMethod = this.easeOutBack; return this; }
public LTDescr setEaseOutElastic() { this.tweenType = LeanTweenType.easeOutElastic; this.easeMethod = this.easeOutElastic; return this; }
public LTDescr setEaseInQuart() { this.tweenType = LeanTweenType.easeInQuart; this.easeMethod = this.easeInQuart; return this; }
public LTDescr setEaseLinear() { this.tweenType = LeanTweenType.linear; this.easeMethod = this.easeLinear; return this; }
public LTDescr setEaseInOutQuad() { this.tweenType = LeanTweenType.easeInOutQuad; this.easeMethod = this.easeInOutQuad; return this; }
public LTDescr setEaseInOutCubic() { this.tweenType = LeanTweenType.easeInOutCubic; this.easeMethod = this.easeInOutCubic; return this; }
public LTDescr setEaseInOutBounce() { this.tweenType = LeanTweenType.easeInOutBounce; this.easeMethod = this.easeInOutBounce; return this; }
/** * 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; }
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; }