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