示例#1
0
 public void reset()
 {
     moveableScript.reset();
     coastController = (Director.getInstance().currentSceneController as Controller.Scene.SceneController_1).fromCoast;
     getOnCoast(coastController);
     setPosition(coastController.getEmptyPosition());
     coastController.getOnLand(this);
 }
示例#2
0
 public void getOnCoast(LandController coastCtrl)
 {
     coastController            = coastCtrl;
     character.transform.parent = null;
     _isOnBoat = false;
 }
示例#3
0
 public void getOnBoat(BoatController boatCtrl)
 {
     coastController            = null;
     character.transform.parent = boatCtrl.getGameobj().transform;
     _isOnBoat = true;
 }