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