public void PlaceTrees(TreePlacer.ProgressDelegate progressDelegate) { Terrain ter = (Terrain) GetComponent(typeof(Terrain)); terrainData = ter.terrainData; TreePlacement.terrainData = terrainData; TreePlacement.terrain = ter; TreePlacement.PlaceTrees(progressDelegate); }
private void Init() { Terrain terComponent = (Terrain)GetComponent(typeof(Terrain)); terrainData = terComponent.terrainData; DetailPlacement = new DetailPlacer(); DetailPlacement.Textures = new List<DetailTextureSettings>(); Objects = new ObjectPlacer(); TreePlacement = new TreePlacer(); DetailPlacement = new DetailPlacer(); Textures = new TextureMapper(); MultiPlacer = new MultiObjectPlacer(); MinScale = 0.8f; MaxScale = 1.2f; RotateY = true; mapperInitialized = true; PlaceEnable = true; }