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 getOnBoat(boatModel boat) { land.deleteRole(this.getName()); this.land = null; this.moveTo(boat.getEmptyPosistion()); boat.addRole(this); role.transform.parent = boat.getBoat().transform; onBoat = true; }
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; }
public void getOnBoat(boatModel boat) { this.land = null; role.transform.parent = boat.getBoat().transform; onBoat = true; }
public void getOnLand(landModel land) { role.transform.parent = null; this.land = land; onBoat = false; }
public void reset() { land = (SSDirector.getInstance().CurrentSceneController as Controller).startLand; getOnLand(land); }