Added water, added EasterEggs, fixed city count, added hud button functions, v1.2.0
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user