LTDescr.setEaseLinear C# (CSharp) Method

setEaseLinear() public method

public setEaseLinear ( ) : LTDescr
return LTDescr
    public LTDescr setEaseLinear()
    {
        this.tweenType = LeanTweenType.linear; this.easeMethod = this.easeLinear; return this;
    }

Usage Example

Beispiel #1
0
    public void StartSwipe(float duration)
    {
        this.gameObject.SetActive(true);
        coll.enabled = true;
        Vector3 goToPos = this.gameObject.transform.localPosition;

        goToPos.y = 5.19f;
        LTDescr tween = LeanTween.move(gameObject, goToPos, duration);

        tween.setOnComplete(Destroy);
        tween.setEaseLinear();
    }
All Usage Examples Of LTDescr::setEaseLinear
LTDescr