public void reset() { moveableScript.reset(); coastController = (Direct.getInstance().currentSceneController as gameController).fromCoast; getOnCoast(coastController); setPosition(coastController.getEmptyPosition()); coastController.getOnCoast(this); }
public void getOnCoast(CoastController coastCtrl) { coastController = coastCtrl; character.transform.parent = null; _isOnBoat = false; }
public void getOnBoat(BoatController boatCtrl) { coastController = null; character.transform.parent = boatCtrl.getGameobj().transform; _isOnBoat = true; }