Ejemplo n.º 1
0
 void Start()
 {
     Vector3 dim = gameObject.GetComponent<Terrain>().terrainData.size;
     Object[] structure = Resources.LoadAll("wrak_budova",typeof(Object));
     if(MapPropertiesHelper.SET.spawn_buildings()){
         bp = new BuildingPlacer(structure,gameObject);
         bp.place_buildings_recursively();
     }
     add_allocator(dim);
 }