Added new tile generation to the game

This commit is contained in:
TAASONI3
2023-12-06 17:02:34 +01:00
parent 3640f8a21f
commit 5fd78ed030
20 changed files with 941 additions and 982 deletions

View File

@@ -22,19 +22,19 @@ public class ContentGenerator : MonoBehaviour
public GameObject generateContent(string tiletype)
{
switch (tiletype)
switch (tiletype.ToLower())
{
case "Plane":
case "plane":
return generateTileContent();
case "Mountain":
case "mountains":
return generateStoneTileContent();
case "Forest":
case "forest":
return generateTreeTileContent();
case "River":
case "river":
return generateRiverTileContent();
case "Lake":
case "lake":
return generateLakeTileContent();
case "City":
case "city":
return generateCityTileContent();
}
return null;