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 static new MoveTo Create(float duration, Vector3 position, CoordinateStyle style = CoordinateStyle.Local) { MoveTo ret = new MoveTo(); if (ret != null && ret.InitWithDuration(duration, position, style)) { return(ret); } return(null); }
private bool InitWithStyle(float duration, Vector3 deltaPosition, CoordinateStyle style) { bool ret = false; if (base.InitWithDuration(duration)) { this.positionDelta = deltaPosition; this.style = style; ret = true; } return(ret); }
private bool InitWithDuration(float duration, Vector3 position, CoordinateStyle style) { bool ret = false; if (base.InitWithDuration(duration)) { this.style = style; this.endPosition = position; ret = true; } return(ret); }