Added new tile generation to the game
This commit is contained in:
@@ -20,7 +20,7 @@ public class SteamWorksHandler : MonoBehaviour
|
||||
{
|
||||
if (counterForest != -1 && !isGodMode())
|
||||
{
|
||||
if (tiletype == "Forest")
|
||||
if (tiletype.ToLower() == "forest")
|
||||
{
|
||||
counterForest++;
|
||||
}
|
||||
|
||||
@@ -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