public void reset() { Cmove.reset(); coastmodel = (Director.get_Instance().curren as My_Scene_controller).fromCoast; getOnCoast(coastmodel); setPosition(coastmodel.getEmptyPosition()); coastmodel.getOnCoast(this); }
public void getOnCoast(Coast_model coastCon) { coastmodel = coastCon; character.transform.parent = null; isOnboat = false; }
public void getOnBoat(Boat_model tem_boat) { coastmodel = null; character.transform.parent = tem_boat.getGameObject().transform; isOnboat = true; }