24 lines
553 B
C#
24 lines
553 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(ref Room room)
|
|
{
|
|
Rooms.Add(room);
|
|
}
|
|
|
|
public Room GetLastRoom()
|
|
{
|
|
return Rooms.LastOrDefault();
|
|
}
|
|
}
|
|
} |