public void reset() { land = (SSDirector.getInstance().CurrentSceneController as Controller).startLand; boat.deleteRole(this.getName()); role.transform.position = land.getEmptyPosition(); land.addRole(this); getOnLand(land); }
public void getOnLand(landModel land) { boat.deleteRole(this.getName()); this.moveTo(land.getEmptyPosition()); land.addRole(this); role.transform.parent = null; this.land = land; onBoat = false; }