diff --git a/Assets/_Project/Scripts/LevelGenerating/LevelManager.cs b/Assets/_Project/Scripts/LevelGenerating/LevelManager.cs index a3e16b6..c67ef56 100644 --- a/Assets/_Project/Scripts/LevelGenerating/LevelManager.cs +++ b/Assets/_Project/Scripts/LevelGenerating/LevelManager.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using _Project.Scripts.Utilities; using NUnit.Framework; using UnityEngine; @@ -15,10 +14,5 @@ namespace _Project.Scripts.LevelGenerating { Rooms.Add(room); } - - public Room GetLastRoom() - { - return Rooms.LastOrDefault(); - } } } \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/Room.cs b/Assets/_Project/Scripts/LevelGenerating/Room.cs index f5791dc..58572a0 100644 --- a/Assets/_Project/Scripts/LevelGenerating/Room.cs +++ b/Assets/_Project/Scripts/LevelGenerating/Room.cs @@ -35,22 +35,10 @@ namespace _Project.Scripts.LevelGenerating this.rt = rt; } - public Room(Vector2 position, int wigth, int length, RoomType rt, bool isWalling, EntranceToRoomType entrance, List exits) - { - Position = position; - Wigth = wigth; - Length = length; - this.rt = rt; - this.isWalling = isWalling; - this.entrance = entrance; - this.exits = exits; - } - public int Wigth { get; set; } public int Length { get; set; } public Vector2 Position; public RoomType rt { get; set; } - public bool isWalling {get; set;} //примыкает ли комната к стене public EntranceToRoomType entrance { get; set; } public List exits { get; set; }