예제 #1
0
파일: moveBoat.cs 프로젝트: lvxm0/Unity3d
        public static moveBoat getAction(Vector3 target, float speed)
        {
            moveBoat action = ScriptableObject.CreateInstance <moveBoat>();

            action.target = target;
            action.speed  = speed;
            return(action);
        }
예제 #2
0
        public void moveboat(BoatController boat)
        {
            moveBoat action = moveBoat.getAction(boat.getDestination(), boat.movingSpeed);

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