Ejemplo n.º 1
0
		public void reset() {
			moveableScript.reset ();
			coastController = (Director.getInstance ().currentSceneController as FirstController).fromCoast;
			getOnCoast (coastController);
			setPosition (coastController.getEmptyPosition ());
			coastController.getOnCoast (this);
		}
Ejemplo n.º 2
0
 //重置函数,恢复现场
 public void reset()
 {
     //moveable.reset();
     coastController = (Director.getInstance().sceneController as FirstController).leftCoast;
     Oncoast(coastController);
     setPosition(coastController.getEmptyPosition());
     coastController.getOnCoast(this);
 }
Ejemplo n.º 3
0
 public void reset()
 {
     //moveableScript.reset();
     coastController = (Director.getInstance().currentSceneController as FirstController).fromCoast;
     getOnCoast(coastController);
     character.transform.position = coastController.getEmptyPosition();
     coastController.getOnCoast(this);
 }
Ejemplo n.º 4
0
 // 重新开始
 public void reset()
 {
     movingScript.reset();
     coastController = (Director.getInstance().currentSceneController as FirstController).fromCoast;
     myAction.getOnCoast(coastController, this);
     setPosition(coastController.getEmptyPosition());
     coastController.setCharacterCtrl(this);
 }
Ejemplo n.º 5
0
 public void getOnCoast(CoastController coastCtrl)
 {
     coastController            = coastCtrl;
     character.transform.parent = null;
     _isOnBoat = false;
 }
Ejemplo n.º 6
0
 public void getOnBoat(BoatController boatCtrl)
 {
     coastController            = null;
     character.transform.parent = boatCtrl.getGameobj().transform;
     _isOnBoat = true;
 }
Ejemplo n.º 7
0
 //角色上岸函数
 public void Oncoast(CoastController temp)
 {
     coastController            = temp;
     character.transform.parent = null;
     is_onboat = false;
 }
Ejemplo n.º 8
0
 //角色上船函数
 public void Onboat(BoatController boatController)
 {
     coastController            = null; //离开岸边
     character.transform.parent = boatController.getBoat().transform;
     is_onboat = true;
 }
Ejemplo n.º 9
0
 public Judger(CoastController from, CoastController to, BoatController b)
 {
     fromCoast = from;
     toCoast   = to;
     boat      = b;
 }
Ejemplo n.º 10
0
 public void setCoastController(CoastController coastCtrl)
 {
     coastController = coastCtrl;
 }