30 lines
674 B
C#
30 lines
674 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using _Project.Scripts.Utilities;
|
|
using NUnit.Framework;
|
|
using UnityEngine;
|
|
|
|
namespace _Project.Scripts.LevelGenerating
|
|
{
|
|
public class LevelManager : MonoSingleton<LevelManager>
|
|
{
|
|
public static List<Room> Rooms = new List<Room>();
|
|
[SerializeField] private readonly int curFloor;
|
|
|
|
public void AddRoom(Room room)
|
|
{
|
|
Rooms.Add(room);
|
|
}
|
|
|
|
public Room GetLastRoom()
|
|
{
|
|
// return Rooms[Rooms.Count - 1];
|
|
return Rooms.Last();
|
|
}
|
|
|
|
public List<Room> GetRooms()
|
|
{
|
|
return Rooms;
|
|
}
|
|
}
|
|
} |