LTDescr.setRotateLocal C# (CSharp) Method

setRotateLocal() public method

public setRotateLocal ( ) : LTDescr
return LTDescr
    public LTDescr setRotateLocal()
    {
        this.type = TweenAction.ROTATE_LOCAL;
        this.initInternal = ()=>{ this.from = trans.localEulerAngles;  this.to = new Vector3(LeanTween.closestRot( this.fromInternal.x, this.toInternal.x), LeanTween.closestRot( this.from.y, this.to.y), LeanTween.closestRot( this.from.z, this.to.z)); };
        this.easeInternal = ()=>{
            newVect = easeMethod();
            trans.localEulerAngles = newVect;
        };
        return this;
    }
LTDescr