示例#1
0
        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);
        }
示例#2
0
 public override Action Reverse()
 {
     return(MoveBy.Create(duration, -positionDelta, style));
 }
示例#3
0
 public override Action Clone()
 {
     Debug.Log("move by clone");
     return(MoveBy.Create(duration, positionDelta, style));
 }