public static moveBoat getAction(Vector3 target, float speed) { moveBoat action = ScriptableObject.CreateInstance <moveBoat>(); action.target = target; action.speed = speed; return(action); }
public void moveboat(BoatController boat) { moveBoat action = moveBoat.getAction(boat.getDestination(), boat.movingSpeed); this.addAction(boat.getGameobj(), action, this); }