Changed rendering of tiles to always show them, changed camera range

This commit is contained in:
TAASONI3
2023-11-25 21:47:29 +01:00
parent 005c4e7e66
commit b9aa033c13
6 changed files with 34 additions and 39 deletions

View File

@@ -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;