Added new tile generation to the game
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Assets.Scripts
|
||||
{
|
||||
GameObject coordinates = GameObject.Find("txtCoordinates");
|
||||
Vector3 position = GameObject.Find("Player").transform.position;
|
||||
string tiletype = GameObject.Find("WorldGenerator").GetComponent<WorldGenerator>().getCurrentTile().GetComponent<Tile>().getTileType();
|
||||
string tiletype = GameObject.Find("WorldGenerator").GetComponent<WorldGenerator>().getCurrentTile().GetComponent<Tile>().getTileType().ToString();
|
||||
if (tiletype != null)
|
||||
{
|
||||
tiletype = tiletype.Replace("Tile", "");
|
||||
|
||||
Reference in New Issue
Block a user