LTDescr.setMoveSplineLocal C# (CSharp) Method

setMoveSplineLocal() public method

public setMoveSplineLocal ( ) : LTDescr
return LTDescr
    public LTDescr setMoveSplineLocal()
    {
        this.type = TweenAction.MOVE_SPLINE_LOCAL;
        this.initInternal = this.initFromInternal;
        this.easeInternal = ()=>{
            newVect = easeMethod();
            val = newVect.x;
            if(this._optional.spline.orientToPath){
                if(this._optional.spline.orientToPath2d){
                    this._optional.spline.placeLocal2d( trans, val );
                }else{
                    this._optional.spline.placeLocal( trans, val );
                }
            }else{
                trans.localPosition = this._optional.spline.point( val );
            }
        };
        return this;
    }
LTDescr