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

@@ -52,7 +52,7 @@ namespace Assets.Scripts
public void update(object obj, int amount)
{
GameObject tile = (GameObject)obj;
string tilename = tile.GetComponent<Tile>().getTileType();
string tilename = tile.GetComponent<Tile>().getTileType().ToString();
if (keyword == "Forest" && tilename.ToLower().Contains("forest"))
{
current++;