Added new tile generation to the game
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user