LTDescr.setRotateZ C# (CSharp) Method

setRotateZ() public method

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