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