public void init() { move.init(); bankController = (Director.getInstance().currentSceneController as Controller).leftBank; moveToBank(bankController); setPosition(bankController.getPos(tag)); bankController.moveToBank(this); }
public void moveToBank(BankController bankController) { this.bankController = bankController; character.transform.parent = null; state = 0; }
public void moveToBoat(BoatController boatController) { bankController = null; character.transform.parent = boatController.getObj().transform; state = 1; }