From b4e619a93e75feb44ce8213f57dfba1ad9010296 Mon Sep 17 00:00:00 2001 From: vladislove Date: Thu, 1 Oct 2026 20:16:38 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=D0=B3=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8E=20=D0=BA=D0=BE=D0=BC=D0=BD=D0=B0?= =?UTF-8?q?=D1=82=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B2=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE=D1=80=D0=B8=D0=B4=D0=BE?= =?UTF-8?q?=D1=80=D0=B0,=20=D0=B4=D0=BE=20=D0=B8=D0=B8=20=D1=84=D1=83?= =?UTF-8?q?=D0=BD=D0=BA=D1=86=D0=B8=D0=B9."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3a3f1ea7 --- .../_Project/Scripts/LevelGenerating/LevelManager.cs | 6 ------ Assets/_Project/Scripts/LevelGenerating/Room.cs | 12 ------------ 2 files changed, 18 deletions(-) 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; }