Ejemplo n.º 1
0
 public void reset()
 {
     CoastCon = (Director.getInstance().currentSceneController as FirstController).fromCoast;
     getOnCoast(CoastCon);
     setPosition(CoastCon.getEmptyPosition());
     CoastCon.getOnCoast(this);
 }
Ejemplo n.º 2
0
 public void getOnCoast(CoastCon coast)
 {
     CoastCon = coast;
     character.transform.parent = null;
     isonboat = false;
 }
Ejemplo n.º 3
0
 public void getOnBoat(BoatCon boat)
 {
     CoastCon = null;
     character.transform.parent = boat.getGameobj().transform;
     isonboat = true;
 }