コード例 #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);
        }