LTDescr.setMoveToTransform C# (CSharp) Method

setMoveToTransform() public method

public setMoveToTransform ( ) : LTDescr
return LTDescr
    public LTDescr setMoveToTransform()
    {
        this.type = TweenAction.MOVE_TO_TRANSFORM;
        this.initInternal = ()=>{ this.from = trans.position; };
        this.easeInternal = ()=>{
            this.to = this._optional.toTrans.position;
            this.diff = this.to - this.from;
            this.diffDiv2 = this.diff * 0.5f;

            newVect = easeMethod();
            this.trans.position = newVect;
        };
        return this;
    }
LTDescr