Cleaned up a bit of code, need to work on camera handlign (Isn't as smooth as I want it to be)

This commit is contained in:
Finnchen123
2025-06-07 09:23:38 +02:00
parent 5a68fc0447
commit aa7bb5ec79
14 changed files with 101 additions and 155 deletions

View File

@@ -1,3 +1,4 @@
using Assets.Scripts;
using Assets.Scripts.InteractableObjects;
using Newtonsoft.Json.Linq;
using System.Collections;
@@ -21,21 +22,21 @@ public class ContentGenerator : MonoBehaviour
return enemies[index];
}
public GameObject generateContent(string tiletype)
public GameObject generateContent(TileType tiletype)
{
switch (tiletype.ToLower())
switch (tiletype)
{
case "plain":
case TileType.PLAIN:
return generateTileContent();
case "mountains":
case TileType.MOUNTAINS:
return generateStoneTileContent();
case "forest":
case TileType.FOREST:
return generateTreeTileContent();
case "hills":
case TileType.HILLS:
return generateHillTileContent();
case "desert":
case TileType.DESERT:
return generateDesertTileContent();
case "city":
case TileType.CITY:
return generateCityTileContent();
}
return null;