Beispiel #1
0
        public void loadResources()
        {
            GameObject water = Instantiate(Resources.Load("Perfabs/Water", typeof(GameObject)), water_pos, Quaternion.identity, null) as GameObject;

            water.name = "water";

            fromCoast = new CoastController(1);
            toCoast   = new CoastController(-1);
            boat      = new BoatController();

            loadCharacter();
        }
Beispiel #2
0
 public void getOnBoat(BoatController boatCtrl)
 {
     coastController            = null;
     character.transform.parent = boatCtrl.getGameobj().transform;
     _isOnBoat = true;
 }
Beispiel #3
0
        public void moveboat(BoatController boat)
        {
            moveBoat action = moveBoat.getAction(boat.getDestination(), boat.movingSpeed);

            this.addAction(boat.getGameobj(), action, this);
        }