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(); }
public void getOnBoat(BoatController boatCtrl) { coastController = null; character.transform.parent = boatCtrl.getGameobj().transform; _isOnBoat = true; }
public void moveboat(BoatController boat) { moveBoat action = moveBoat.getAction(boat.getDestination(), boat.movingSpeed); this.addAction(boat.getGameobj(), action, this); }