コード例 #1
0
 public void boatMove()
 {
     if (model.getTFflag() == 1)
     {
         //move.SetDestination (model.getToPos());
         actionManager.moveBoat(model.getGameObject(), model.getToPos(), 20);
         model.setTFflag(-1);
     }
     else
     {
         //move.SetDestination (model.getFromPos());
         actionManager.moveBoat(model.getGameObject(), model.getFromPos(), 20);
         model.setTFflag(1);
     }
 }
コード例 #2
0
 //船移动
 public void shipMove()
 {
     //有人在船上才能移动
     if (shipEmpty() != 2)
     {
         if (s1.state == State.Left)
         {
             s1.state = State.LTR;
             actionManager.moveBoat(ship_obj, s1, shipRightPostion, speed);//动作分离
         }
         else if (s1.state == State.Right)
         {
             s1.state = State.RTL;
             actionManager.moveBoat(ship_obj, s1, shipLeftPostion, speed);//动作分离
         }
     }
 }
コード例 #3
0
 public void MoveBoat()                  //移动船
 {
     if (boat.IsEmpty() || user_gui.sign != 0)
     {
         return;
     }
     actionManager.moveBoat(boat.getGameObject(), boat.BoatMove(), boat.move_speed);   //动作分离版本改变
     user_gui.sign = Check();
 }
コード例 #4
0
 public void ClickBoat()
 {
     if (boat.isEmpty())
     {
         return;
     }
     actionManager.moveBoat(boat.getGameObject(), boat.BoatMoveToPosition(), boat.move_speed);
     userGUI.status = Judger.getInstance().check(fromCoast, toCoast, boat);
 }
コード例 #5
0
 public void MoveBoat()
 {
     if (boat.IsEmpty() || user_gui.sign != 0)
     {
         return;
     }
     actionManager.moveBoat(boat.getGameObject(), boat.BoatMove(), boat.move_speed);
     user_gui.sign = judge.Check();
 }
コード例 #6
0
    //change in v2
    public void moveBoat()
    {
        if (boat.isEmpty())
        {
            return;
        }
        //action
        Vector3 target = boat.getBoatFlag() == 1 ? boat.getEndPos() : boat.getStartPos();

        actionManager.moveBoat(boat.getBoat(), target, 100 * Time.deltaTime);
        boat.setBoatFlag(-boat.getBoatFlag());
    }
コード例 #7
0
 public void moveboat()
 {
     if (Director.cn_move == 1)
     {
         return;
     }
     if (boat.IfEmpty())
     {
         return;
     }
     actionManager.moveBoat(boat.getGameObject(), boat.boatMove(), boat.move_speed);
     //check whether game over
     user.if_win_or_not = checkGameOver();
 }
コード例 #8
0
ファイル: Controller.cs プロジェクト: Jan-Jsr/3D-
    /* return myJudge.getStatus();
     * }*/
    public void MoveBoat()                  //移动船
    {
        if (boat.IsEmpty() || user_gui.sign != 0)
        {
            return;
        }
        actionManager.moveBoat(boat.getGameObject(), boat.BoatMoveToPosition(), boat.move_speed);   //动作分离版本改变
        user_gui.sign = Check();

        /*if (user_gui.sign == 1)
         * {
         *  for (int i = 0; i < 3; i++)
         *  {
         *      roles[i].PlayGameOver();
         *      roles[i + 3].PlayGameOver();
         *  }
         * }*///f**k
    }
コード例 #9
0
 public void MoveBoat()//移动船
 {
     if (boat.IsEmpty() || user_gui.sign != 0)
     {
         return;
     }
     //boat.BoatMove();
     //动作分离版本改变
     actionManager.moveBoat(boat.getGameObject(), boat.BoatMoveToPosition(), boat.move_speed);
     user_gui.sign = judge.Check((start_land.GetRoleNum())[0], (start_land.GetRoleNum())[1], (end_land.GetRoleNum())[0], (end_land.GetRoleNum())[1]);
     if (user_gui.sign == 1)
     {
         for (int i = 0; i < RoleAmount; i++)
         {
             roles[i].PlayGameOver();
             roles[i + RoleAmount].PlayGameOver();
         }
     }
 }