public void BuildFloor() { Floor floor = InstantiateFloor(); floor.Build(CreateRandomRooms(), m_floors.Count); m_floors.Add(floor); dungeonPortal.SetTarget(floor.entrance); GameManager.Instance.SaveGame(); }
//=== public void BuildFloor(List <Room> rooms) { Floor floor = InstantiateFloor(); floor.Build(rooms, m_floors.Count); m_floors.Add(floor); dungeonPortal.SetTarget(floor.entrance); GameManager.Instance.SaveGame(); }