Пример #1
0
 public void reset()
 {
     moveableScript.reset();
     coastController = (Direct.getInstance().currentSceneController as gameController).fromCoast;
     getOnCoast(coastController);
     setPosition(coastController.getEmptyPosition());
     coastController.getOnCoast(this);
 }
Пример #2
0
 public void getOnCoast(CoastController 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;
 }