Ejemplo n.º 1
0
        public static moveBoat getAction(Vector3 target, float speed)
        {
            moveBoat action = ScriptableObject.CreateInstance <moveBoat>();

            action.target = target;
            action.speed  = speed;
            return(action);
        }
Ejemplo n.º 2
0
        public void moveboat(BoatController boat)
        {
            moveBoat action = moveBoat.getAction(boat.getDestination(), boat.movingSpeed);

            this.addAction(boat.getGameobj(), action, this);
        }