Changed rendering of tiles to always show them, changed camera range
This commit is contained in:
@@ -9,15 +9,16 @@ using System.Linq;
|
||||
public class NoiseGenerator
|
||||
{
|
||||
System.Random rand = new System.Random();
|
||||
public void applyNoise(GameObject tile, string name)
|
||||
public void applyNoise(GameObject tile, string name, Dictionary<Vector3, GameObject> map)
|
||||
{
|
||||
if(name.Length > 0){
|
||||
/*if(name.Length > 0){
|
||||
applyCityNoise(tile);
|
||||
}
|
||||
else{
|
||||
applyNormalNoise(tile);
|
||||
}
|
||||
|
||||
applyNormalNoise(tile, map);
|
||||
}*/
|
||||
applyNormalNoise(tile, map);
|
||||
|
||||
}
|
||||
|
||||
private void applyCityNoise(GameObject tile)
|
||||
@@ -45,7 +46,7 @@ public class NoiseGenerator
|
||||
tile.GetComponent<Tile>().setType(tiletype);
|
||||
}
|
||||
|
||||
private void applyNormalNoise(GameObject tile)
|
||||
private void applyNormalNoise(GameObject tile, Dictionary<Vector3, GameObject> map)
|
||||
{
|
||||
//resetMesh(tile);
|
||||
Mesh mesh = tile.GetComponent<MeshFilter>().mesh;
|
||||
|
||||
Reference in New Issue
Block a user