Added water, added EasterEggs, fixed city count, added hud button functions, v1.2.0

This commit is contained in:
Nicola Sovic
2022-04-11 16:21:17 +02:00
parent 8266248281
commit cb7541ce85
353 changed files with 11866 additions and 19 deletions

View File

@@ -83,8 +83,19 @@ public class WorldGenerator : MonoBehaviour
Vector3 mapPos = new Vector3(pos.x * 100, 0, pos.z * 100);
if (chance == 1)
{
newTile = Instantiate(city, mapPos, Quaternion.identity);
name = city.name;
if (cityAmount > 0)
{
newTile = Instantiate(city, mapPos, Quaternion.identity);
name = city.name;
cityAmount--;
}
else
{
newTile = Instantiate(tile, mapPos, Quaternion.identity);
name = tile.name;
noise.applyNoise(newTile);
}
}
else
{