Exemple #1
0
 public void reset()
 {
     //moveScript.Reset();
     shoreController = (Director.getInstance().currentSceneController as firstController).fromShore;
     getOnShore(shoreController);
     setPosition(shoreController.getEmptyPosition());
     shoreController.getOnShore(this);
 }
Exemple #2
0
 public void getOnShore(shoreController coastCtrl)
 {
     shoreController            = coastCtrl;
     character.transform.parent = null;
     _isOnBoat = false;
 }
Exemple #3
0
 public void getOnBoat(BoatController boatCtrl)
 {
     shoreController            = null;
     character.transform.parent = boatCtrl.getGameobj().transform;
     _isOnBoat = true;
 }