public void reset() { moveableScript.reset(); coastController = (Director.getInstance().currentSceneController as Controller.Scene.SceneController_1).fromCoast; getOnCoast(coastController); setPosition(coastController.getEmptyPosition()); coastController.getOnLand(this); }
public void getOnCoast(LandController coastCtrl) { coastController = coastCtrl; character.transform.parent = null; _isOnBoat = false; }
public void getOnBoat(BoatController boatCtrl) { coastController = null; character.transform.parent = boatCtrl.getGameobj().transform; _isOnBoat = true; }