void PlaceDoor(Vector3 _spawnPos, bool _door, GameObject _doorSpawn) { // check whether its a door or wall, then spawn m_DoorCoords.Add(_spawnPos); if (_door) { m_WorldInstance.InstantiateMapTile(_doorSpawn, _spawnPos, m_RoomRootTransform, m_Level); } else { m_WorldInstance.InstantiateMapTile(doorWall, _spawnPos, m_RoomRootTransform, m_Level); } }