public static CCBoatMove GetSSAction(Vector3 target) { CCBoatMove action = ScriptableObject.CreateInstance <CCBoatMove>(); action.target = target; return(action); }
public void moveBoat(GameObject boat, Vector3 target) { CCBoatMove boatMoveToLeft = CCBoatMove.GetSSAction(target); this.RunAction(boat, boatMoveToLeft, this); }