public static MoveBy Create(float duration, Vector3 deltaPosition, CoordinateStyle style = CoordinateStyle.Local) { MoveBy ret = new MoveBy(); if (ret != null && ret.InitWithStyle(duration, deltaPosition, style)) { return(ret); } return(null); }
public override Action Reverse() { return(MoveBy.Create(duration, -positionDelta, style)); }
public override Action Clone() { Debug.Log("move by clone"); return(MoveBy.Create(duration, positionDelta, style)); }