LTDescr.setRotateX C# (CSharp) Method

setRotateX() public method

public setRotateX ( ) : LTDescr
return LTDescr
    public LTDescr setRotateX()
    {
        this.type = TweenAction.ROTATE_X;
        this.initInternal = ()=>{ this.fromInternal.x = trans.eulerAngles.x; this.toInternal.x = LeanTween.closestRot( this.fromInternal.x, this.toInternal.x);};
        this.easeInternal = ()=>{ trans.eulerAngles=new Vector3(easeMethod().x,trans.eulerAngles.y,trans.eulerAngles.z); };
        return this;
    }
LTDescr