Skip to content
Snippets Groups Projects
Commit d2d2bddd authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

removed pad variable and from scene

parent 71bd8680
No related branches found
No related tags found
2 merge requests!52Updating master,!49Ruud1
......@@ -13,7 +13,6 @@ namespace Bigsock
[SerializeField] TileSetSO tileSetSO;
[SerializeField] PolygonCollider2D polygonCollider;
[SerializeField] GameObject Door;
[SerializeField] GameObject Pad;
[SerializeField] GameObject[] Enemy;
private int z_value = 0;
private static int i = 0;
......@@ -138,8 +137,6 @@ namespace Bigsock
z_value), Quaternion.identity);
DoorLocations.Add(new Vector3Int((int)WallBottom[roomNr].transform.position.x + x + 2,
(int)WallBottom[roomNr].transform.position.y, z_value));
Instantiate(Pad, new Vector3(WallBottom[roomNr].transform.position.x + x + 2, WallBottom[roomNr].transform.position.y,
z_value), Quaternion.identity);
FloorTilemap[roomNr].SetTile(new Vector3Int(x + x1 + 1, map.GetLowerBound(1) - 1, z_value), tileSetSO.floorTile[0]);
FloorTilemap[roomNr].SetTile(new Vector3Int(x + x1 + 2, map.GetLowerBound(1) - 1, z_value), tileSetSO.floorTile[0]);
doorPlaced = true;
......@@ -220,6 +217,7 @@ namespace Bigsock
public void SpawnEnemies(int[,] map, int enemies, int roomNr)
{
for (int i = 0; i < enemies; i++)
{
int randomLocation_x = Random.Range(0,map.GetUpperBound(0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment