Added basic scene switching, v.1.3.0

This commit is contained in:
Nicola Sovic
2022-06-02 22:14:53 +02:00
parent 46e1a5936b
commit bb052cef6b
20 changed files with 15353 additions and 7766 deletions

View File

@@ -40,11 +40,14 @@ public class WorldGenerator : MonoBehaviour
public void resetGame(int cityAmount)
{
foreach (GameObject tile in tiles.Values)
if (tiles != null)
{
if (tile.name != "Spawn")
foreach (GameObject tile in tiles.Values)
{
Destroy(tile);
if (tile.name != "Spawn")
{
Destroy(tile);
}
}
}
player.transform.position = new Vector3(0,1.5f,0);