Example #1
0
 public void toBoat(BoatController boatController)
 {
     //leave the coast and let the boat be the parent of the character
     coastController            = null;
     character.transform.parent = boatController.getGameobject().transform;
     onBoat = true;
 }
Example #2
0
 public void clear()
 {
     coastController = (Director.getInstance().currentSceneController as FirstController).leftCoast;
     //get to the left coast
     toCoast(coastController);
     //get to the empty position in left coast
     setPosition(coastController.getEmptyPosition());
     //this character get to the coast(the coast is 'got' by the character)
     coastController.toCoast(this);
 }
Example #3
0
 public void toCoast(CoastController _coastController)
 {
     coastController            = _coastController;
     character.transform.parent = null;
     onBoat = false;
 }