Пример #1
0
 // 重新开始
 public void reset()
 {
     movingScript.reset();
     coastController = (Director.getInstance().currentSceneController as FirstController).fromCoast;
     getOnCoast(coastController);
     setPosition(coastController.getEmptyPosition());
     coastController.getOnCoast(this);
 }
Пример #2
0
 public void reset()
 {
     movingScript.reset();
     if (to_from == -1)
     {
         Move();
     }
     passenger = new MyCharacterController[2];
 }
Пример #3
0
        // public void Move() {
        //  if (to_from == -1) {
        //      movingScript.setDestination(from_pos);
        //      to_from = 1;
        //  }
        //  else {
        //      movingScript.setDestination(to_pos);
        //      to_from = -1;
        //  }
        // }

        public void reset()
        {
            movingScript.reset();
            if (to_from == -1)
            {
                boatAction.boatMove(this);
            }
            passenger = new MyCharacterController[2];
        }