Added controls for gamepad, changed input & UI
This commit is contained in:
@@ -88,11 +88,10 @@ public class WorldGenerator : MonoBehaviour
|
||||
Vector3 pos = currentTile.GetComponent<Tile>().needConnectedTile(playerX, playerZ);
|
||||
if (!tiles.ContainsKey(pos) && pos.y == 0)
|
||||
{
|
||||
GameObject newTile;
|
||||
string name = "";
|
||||
int chance = rand.Next(1,11);
|
||||
Vector3 mapPos = new Vector3(pos.x * 100, 0, pos.z * 100);
|
||||
newTile = Instantiate(tile, mapPos, Quaternion.identity);
|
||||
GameObject newTile = Instantiate(tile, mapPos, Quaternion.identity);
|
||||
if (chance == 1)
|
||||
{
|
||||
if (cityAmount > 0)
|
||||
|
||||
Reference in New Issue
Block a user