если выйти из врага он будет жив. есть переход на следующий этаж
This commit is contained in:
1 parent
263af0a52e
commit
ccaf43b3fe
10 files changed
+587
-68
No files matched your search
@@ -13860,6 +13860,7 @@ GameObject:
|
||||
- component: {fileID: 740097206}
|
||||
- component: {fileID: 740097207}
|
||||
- component: {fileID: 740097208}
|
||||
- component: {fileID: 740097209}
|
||||
m_Layer: 0
|
||||
m_Name: WallsGenerator
|
||||
m_TagString: Untagged
|
||||
@@ -13879,7 +13880,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 2197e0e0f0e04dbaa19b690f03f10300, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::_Project.Scripts.LevelGenerating.WallsGenerator
|
||||
floorsCount: 10
|
||||
floorsCount: 3
|
||||
lengthWallMin: 10
|
||||
lengthWallMax: 70
|
||||
lengthStartRoom: 10
|
||||
@@ -13888,7 +13889,7 @@ MonoBehaviour:
|
||||
lengthFloor: 200
|
||||
corridorLength: 4
|
||||
corridorWigth: 3
|
||||
minRoomCount: 10
|
||||
minRoomCount: 4
|
||||
_minDepthLiftRoom: 5
|
||||
_minDistanceStartLift: 50
|
||||
GameObjectA: {fileID: 8066171868259172852, guid: e46748b8eb8a6074d9bb87701cebe84b, type: 3}
|
||||
@@ -13896,7 +13897,7 @@ MonoBehaviour:
|
||||
Player: {fileID: 1033791869251556189}
|
||||
shellSpawner: {fileID: 740097207}
|
||||
roomGenerators: {fileID: 740097208}
|
||||
maxRooms: 15
|
||||
maxRooms: 3
|
||||
branchChance: 1
|
||||
roomMargin: 2
|
||||
liftDoorAnyPosition: 0
|
||||
@@ -13968,6 +13969,28 @@ MonoBehaviour:
|
||||
theme: {fileID: 11400000, guid: 4ced885841efb23e18cbc01c8dc2da8e, type: 2}
|
||||
- type: 6
|
||||
theme: {fileID: 11400000, guid: 56c9041533d986320b94dfdb6af4f25f, type: 2}
|
||||
--- !u!114 &740097209
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 740097203}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e1cab54e4aa143c2a0098f3d1600ee0e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::_Project.Scripts.LevelGenerating.TowerOrchestrator
|
||||
wallsGenerator: {fileID: 0}
|
||||
shellSpawner: {fileID: 0}
|
||||
roomGenerators: {fileID: 0}
|
||||
playerObject: {fileID: 0}
|
||||
lastFloorIsSpecialRoof: 0
|
||||
specialFloorId: BossRoof
|
||||
specialBossRoofPrefab: {fileID: 0}
|
||||
specialPlayerSpawnPoint: {x: 0, y: 2, z: 0}
|
||||
lockDoorsInCombat: 1
|
||||
playerSpawnHeight: 1.5
|
||||
--- !u!1001 &740364276
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -399,7 +399,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 600, y: 180}
|
||||
m_SizeDelta: {x: 400, y: 150}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &241822663
|
||||
MonoBehaviour:
|
||||
@@ -704,8 +704,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 142.3
|
||||
m_fontSizeBase: 142.3
|
||||
m_fontSize: 100.8
|
||||
m_fontSizeBase: 100.8
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@@ -954,8 +954,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 142.3
|
||||
m_fontSizeBase: 142.3
|
||||
m_fontSize: 100.8
|
||||
m_fontSizeBase: 100.8
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@@ -1215,8 +1215,8 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 142.3
|
||||
m_fontSizeBase: 142.3
|
||||
m_fontSize: 100.8
|
||||
m_fontSizeBase: 100.8
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
@@ -1507,7 +1507,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 600, y: 180}
|
||||
m_SizeDelta: {x: 400, y: 150}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1533455072
|
||||
MonoBehaviour:
|
||||
@@ -1707,7 +1707,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 600, y: 180}
|
||||
m_SizeDelta: {x: 400, y: 150}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1599130553
|
||||
MonoBehaviour:
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Scripts.PlayerUtils
|
||||
{
|
||||
@@ -17,20 +18,23 @@ namespace _Project.Scripts.PlayerUtils
|
||||
|
||||
public float CurrentHealth { get; private set; }
|
||||
public bool IsDead { get; private set; }
|
||||
public bool IsPossessed { get; private set; }
|
||||
|
||||
// Можно вселяться в любого живого врага (или если у него осталось мало ХП — на твой выбор)
|
||||
public bool CanBePossessed => !IsDead;
|
||||
public bool CanBePossessed => !IsDead && !IsPossessed;
|
||||
|
||||
private Rigidbody _rb;
|
||||
private Collider _col;
|
||||
private Transform _playerTransform;
|
||||
private float _fireTimer;
|
||||
private float _strafeTimer;
|
||||
private float _stunTimer; // Оглушение после того, как Дух покинул тело
|
||||
private int _strafeDir = 1;
|
||||
private LineRenderer _sniperLaser;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_rb = GetComponent<Rigidbody>();
|
||||
_col = GetComponent<Collider>();
|
||||
_rb.freezeRotation = true;
|
||||
}
|
||||
|
||||
@@ -44,7 +48,8 @@ namespace _Project.Scripts.PlayerUtils
|
||||
profile = BodyProfile.CreateDefault(enemyClass);
|
||||
}
|
||||
|
||||
CurrentHealth = profile.maxHealth;
|
||||
if (CurrentHealth <= 0f)
|
||||
CurrentHealth = profile.maxHealth;
|
||||
|
||||
if (enemyClass == BodyClass.Sniper && _sniperLaser == null)
|
||||
{
|
||||
@@ -52,6 +57,53 @@ namespace _Project.Scripts.PlayerUtils
|
||||
}
|
||||
}
|
||||
|
||||
// Вызывается, когда Дух игрока захватывает это тело
|
||||
public void OnPossessedByPlayer()
|
||||
{
|
||||
IsPossessed = true;
|
||||
if (_sniperLaser != null) _sniperLaser.enabled = false;
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
// Вызывается, когда Дух покидает это тело, пока оно ещё живо!
|
||||
public void OnReleasedFromPossession(Vector3 releasePos, Quaternion releaseRot, float remainingHealth, float stunTime = 0.8f)
|
||||
{
|
||||
IsPossessed = false;
|
||||
CurrentHealth = Mathf.Max(1f, remainingHealth);
|
||||
|
||||
transform.SetPositionAndRotation(releasePos, releaseRot);
|
||||
gameObject.SetActive(true);
|
||||
|
||||
_stunTimer = stunTime;
|
||||
_fireTimer = Mathf.Max(_fireTimer, stunTime + 0.3f);
|
||||
|
||||
if (_rb != null)
|
||||
{
|
||||
_rb.linearVelocity = Vector3.zero;
|
||||
}
|
||||
|
||||
// Временно отключаем физическое столкновение с капсулой игрока на 0.6 сек,
|
||||
// чтобы при выпрыгивании из тела игрок и враг не застряли друг в друге!
|
||||
if (_col != null && Player.Instance != null)
|
||||
{
|
||||
var playerCol = Player.Instance.GetComponent<Collider>();
|
||||
if (playerCol != null)
|
||||
{
|
||||
StartCoroutine(TemporaryIgnorePlayerCollision(playerCol, 0.6f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator TemporaryIgnorePlayerCollision(Collider playerCol, float duration)
|
||||
{
|
||||
Physics.IgnoreCollision(_col, playerCol, true);
|
||||
yield return new WaitForSecondsRealtime(duration);
|
||||
if (_col != null && playerCol != null)
|
||||
{
|
||||
Physics.IgnoreCollision(_col, playerCol, false);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetupSniperLaser()
|
||||
{
|
||||
_sniperLaser = gameObject.AddComponent<LineRenderer>();
|
||||
@@ -65,7 +117,15 @@ namespace _Project.Scripts.PlayerUtils
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (IsDead || _playerTransform == null) return;
|
||||
if (IsDead || IsPossessed || _playerTransform == null) return;
|
||||
|
||||
// Пока враг приходит в себя после изгнания духа — он не стреляет
|
||||
if (_stunTimer > 0f)
|
||||
{
|
||||
_stunTimer -= Time.deltaTime;
|
||||
if (_sniperLaser != null) _sniperLaser.enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
_fireTimer -= Time.deltaTime;
|
||||
_strafeTimer -= Time.deltaTime;
|
||||
@@ -86,7 +146,6 @@ namespace _Project.Scripts.PlayerUtils
|
||||
return;
|
||||
}
|
||||
|
||||
// Поворот лицом к игроку по горизонтали
|
||||
Vector3 flatDir = new Vector3(toPlayer.x, 0f, toPlayer.z).normalized;
|
||||
if (flatDir.sqrMagnitude > 0.001f)
|
||||
{
|
||||
@@ -94,7 +153,6 @@ namespace _Project.Scripts.PlayerUtils
|
||||
transform.rotation, Quaternion.LookRotation(flatDir), Time.deltaTime * 10f);
|
||||
}
|
||||
|
||||
// Лазер снайпера виден за 0.5 сек до выстрела
|
||||
if (_sniperLaser != null)
|
||||
{
|
||||
_sniperLaser.enabled = _fireTimer < 0.5f;
|
||||
@@ -105,7 +163,6 @@ namespace _Project.Scripts.PlayerUtils
|
||||
}
|
||||
}
|
||||
|
||||
// Стрельба по игроку
|
||||
if (dist <= profile.weaponRange && _fireTimer <= 0f)
|
||||
{
|
||||
ShootAtPlayer(eyePos, toPlayer.normalized);
|
||||
@@ -114,7 +171,13 @@ namespace _Project.Scripts.PlayerUtils
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
if (IsDead || _playerTransform == null) return;
|
||||
if (IsDead || IsPossessed || _playerTransform == null) return;
|
||||
|
||||
if (_stunTimer > 0f)
|
||||
{
|
||||
_rb.linearVelocity = new Vector3(0f, _rb.linearVelocity.y, 0f);
|
||||
return;
|
||||
}
|
||||
|
||||
Vector3 eyePos = transform.position + Vector3.up * eyeHeight;
|
||||
Vector3 targetPos = _playerTransform.position + Vector3.up * 1.0f;
|
||||
@@ -131,17 +194,14 @@ namespace _Project.Scripts.PlayerUtils
|
||||
Vector3 right = Vector3.Cross(Vector3.up, forward);
|
||||
Vector3 moveDir = Vector3.zero;
|
||||
|
||||
// Тактика передвижения зависит от класса!
|
||||
switch (enemyClass)
|
||||
{
|
||||
case BodyClass.Scout:
|
||||
// Агрессивно сближается зигзагами
|
||||
if (dist > 3.5f) moveDir = (forward + right * (_strafeDir * 0.65f)).normalized;
|
||||
else moveDir = right * _strafeDir;
|
||||
break;
|
||||
|
||||
case BodyClass.Trooper:
|
||||
// Держит среднюю дистанцию (8-14м) и стрейфит
|
||||
if (dist > 14f) moveDir = forward + right * (_strafeDir * 0.3f);
|
||||
else if (dist < 7f) moveDir = -forward + right * (_strafeDir * 0.5f);
|
||||
else moveDir = right * _strafeDir;
|
||||
@@ -149,12 +209,10 @@ namespace _Project.Scripts.PlayerUtils
|
||||
break;
|
||||
|
||||
case BodyClass.Juggernaut:
|
||||
// Медленно и неотвратимо идёт напролом
|
||||
if (dist > 4f) moveDir = forward;
|
||||
break;
|
||||
|
||||
case BodyClass.Sniper:
|
||||
// Держится далеко (отступает, если игрок ближе 15м)
|
||||
if (dist < 15f) moveDir = -forward + right * (_strafeDir * 0.25f);
|
||||
else if (dist > 28f) moveDir = forward;
|
||||
moveDir.Normalize();
|
||||
@@ -183,8 +241,6 @@ namespace _Project.Scripts.PlayerUtils
|
||||
|
||||
int pellets = Mathf.Max(1, profile.pelletsPerShot);
|
||||
float spread = Mathf.Max(1.5f, profile.spreadAngle + 1.5f);
|
||||
|
||||
// Сдвигаем точку вылета чуть вперёд от глаз врага
|
||||
Vector3 muzzlePos = origin + baseDir * 0.6f;
|
||||
|
||||
for (int i = 0; i < pellets; i++)
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
// =====================================================================
|
||||
// Триггер в комнате лифта (RoomType.Lift).
|
||||
// Создаётся автоматически Оркестратором и переносит игрока на следующий этаж.
|
||||
// =====================================================================
|
||||
public class LiftTrigger : MonoBehaviour
|
||||
{
|
||||
private TowerOrchestrator _orchestrator;
|
||||
private bool _triggered;
|
||||
|
||||
public static LiftTrigger CreateInRoom(Room liftRoom, Transform parent, TowerOrchestrator orchestrator)
|
||||
{
|
||||
if (liftRoom == null) return null;
|
||||
|
||||
var go = new GameObject("Lift_ExitTrigger");
|
||||
go.transform.SetParent(parent, false);
|
||||
|
||||
Vector3 centerWorld = LevelGrid.ToWorld(liftRoom.Center, 1.2f);
|
||||
go.transform.position = centerWorld;
|
||||
|
||||
// Визуальный маяк лифта (полупрозрачный зелёный столб света в центре лифта, чтобы игрок видел выход)
|
||||
var beacon = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
|
||||
beacon.name = "LiftBeacon";
|
||||
beacon.transform.SetParent(go.transform, false);
|
||||
beacon.transform.localPosition = Vector3.zero;
|
||||
beacon.transform.localScale = new Vector3(1.8f, 1.2f, 1.8f);
|
||||
var beaconCol = beacon.GetComponent<Collider>();
|
||||
if (beaconCol != null) Destroy(beaconCol);
|
||||
|
||||
var rend = beacon.GetComponent<Renderer>();
|
||||
if (rend != null)
|
||||
{
|
||||
var mat = new Material(Shader.Find("Sprites/Default"));
|
||||
mat.color = new Color(0.1f, 1f, 0.4f, 0.25f);
|
||||
rend.material = mat;
|
||||
rend.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
||||
}
|
||||
|
||||
// Физический триггер входа в лифт
|
||||
var box = go.AddComponent<BoxCollider>();
|
||||
box.isTrigger = true;
|
||||
box.size = new Vector3(2.2f, 2.4f, 2.2f);
|
||||
|
||||
var trigger = go.AddComponent<LiftTrigger>();
|
||||
trigger._orchestrator = orchestrator;
|
||||
return trigger;
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (_triggered || _orchestrator == null) return;
|
||||
|
||||
if (other.CompareTag("Player") || other.transform.root.CompareTag("Player") ||
|
||||
other.name.Contains("Player") || other.transform.root.name.Contains("Player"))
|
||||
{
|
||||
_triggered = true;
|
||||
_orchestrator.AdvanceToNextFloor();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5819ab71fddf48d0b8868188558389c2
|
||||
timeCreated: 1793876674
|
||||
@@ -0,0 +1,317 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using _Project.Scripts.Utilities;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
// =====================================================================
|
||||
// Главный Оркестратор мега-башни.
|
||||
// Генерирует несколько этажей на основе настроек WallsGenerator,
|
||||
// управляет переходом между этажами на лифте, спавном оболочки и дверями в бою.
|
||||
// =====================================================================
|
||||
public class TowerOrchestrator : MonoSingleton<TowerOrchestrator>
|
||||
{
|
||||
[Header("Ссылки на модули генерации")]
|
||||
[SerializeField] private WallsGenerator wallsGenerator;
|
||||
[SerializeField] private ShellSpawner shellSpawner;
|
||||
[SerializeField] private RoomGeneratorRegistry roomGenerators;
|
||||
[SerializeField] private GameObject playerObject;
|
||||
|
||||
[Header("Финальный этаж (Special / Крыша Босса)")]
|
||||
[Tooltip("Если включено, самый последний этаж башни будет иметь тип FloorKind.Special")]
|
||||
[SerializeField] private bool lastFloorIsSpecialRoof = false;
|
||||
[SerializeField] private string specialFloorId = "BossRoof";
|
||||
[Tooltip("Готовый префаб локации с боссом для финального этажа (опционально)")]
|
||||
[SerializeField] private GameObject specialBossRoofPrefab;
|
||||
[SerializeField] private Vector3 specialPlayerSpawnPoint = new Vector3(0f, 2f, 0f);
|
||||
|
||||
[Header("Управление дверями и боем")]
|
||||
[Tooltip("Запирать двери комнаты, когда игрок заходит в комнату с живыми врагами")]
|
||||
[SerializeField] private bool lockDoorsInCombat = true;
|
||||
[SerializeField] private float playerSpawnHeight = 1.5f;
|
||||
|
||||
// Все этажи текущего забега
|
||||
public readonly List<FloorData> Floors = new List<FloorData>();
|
||||
|
||||
public int CurrentFloorIndex { get; private set; }
|
||||
public int TotalFloors => Floors.Count;
|
||||
public FloorData CurrentFloor => (CurrentFloorIndex >= 0 && CurrentFloorIndex < Floors.Count) ? Floors[CurrentFloorIndex] : null;
|
||||
public ShellResult CurrentShell { get; private set; }
|
||||
public RoomView CurrentPlayerRoom { get; private set; }
|
||||
public bool IsTowerCompleted { get; private set; }
|
||||
|
||||
public event Action<int, int> OnFloorChanged; // (currentFloorIndex, totalFloors)
|
||||
public event Action OnTowerCleared; // когда пройдены все этажи башни
|
||||
|
||||
private GameObject _spawnedSpecialRoot;
|
||||
private RoomView _lockedCombatRoom;
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
|
||||
if (wallsGenerator == null) wallsGenerator = FindFirstObjectByType<WallsGenerator>();
|
||||
if (shellSpawner == null) shellSpawner = FindFirstObjectByType<ShellSpawner>();
|
||||
if (roomGenerators == null) roomGenerators = FindFirstObjectByType<RoomGeneratorRegistry>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (playerObject == null && Player.Instance != null)
|
||||
{
|
||||
playerObject = Player.Instance.gameObject;
|
||||
}
|
||||
|
||||
GenerateEntireTower();
|
||||
LoadFloor(0);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (IsTowerCompleted || CurrentShell == null || playerObject == null) return;
|
||||
|
||||
UpdatePlayerRoomAndDoors();
|
||||
|
||||
// Отладочная клавиша (PageUp / F9) — мгновенно прыгнуть на следующий этаж для теста
|
||||
if (Keyboard.current != null && Keyboard.current.f9Key.wasPressedThisFrame)
|
||||
{
|
||||
AdvanceToNextFloor();
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- 1. Генерация раскладки всех этажей башни ----------
|
||||
|
||||
public void GenerateEntireTower()
|
||||
{
|
||||
Floors.Clear();
|
||||
|
||||
if (wallsGenerator == null)
|
||||
{
|
||||
Debug.LogError("TowerOrchestrator: не найден WallsGenerator!");
|
||||
return;
|
||||
}
|
||||
|
||||
wallsGenerator.InitializeSettings();
|
||||
int count = Mathf.Max(1, wallsGenerator.FloorsCount);
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
bool isSpecial = lastFloorIsSpecialRoof && (i == count - 1) && specialBossRoofPrefab != null;
|
||||
|
||||
if (isSpecial)
|
||||
{
|
||||
FloorData specialFloor = FloorData.CreateSpecial(i, specialFloorId);
|
||||
Floors.Add(specialFloor);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Генерируем только данные этажа (комнаты, роли, отрезки стен и проёмов)
|
||||
FloorData generatedFloor = wallsGenerator.GenerateLayoutOnly(i);
|
||||
Floors.Add(generatedFloor);
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log($"TowerOrchestrator: сгенерирована башня из {Floors.Count} этажей.");
|
||||
}
|
||||
|
||||
// ---------- 2. Постройка/выгрузка конкретного этажа в 3D ----------
|
||||
|
||||
public void LoadFloor(int floorIndex)
|
||||
{
|
||||
UnloadCurrentFloor();
|
||||
|
||||
if (floorIndex < 0 || floorIndex >= Floors.Count)
|
||||
{
|
||||
CompleteTower();
|
||||
return;
|
||||
}
|
||||
|
||||
CurrentFloorIndex = floorIndex;
|
||||
FloorData floor = Floors[floorIndex];
|
||||
|
||||
if (floor.Kind == FloorKind.Special)
|
||||
{
|
||||
if (specialBossRoofPrefab != null)
|
||||
{
|
||||
_spawnedSpecialRoot = Instantiate(specialBossRoofPrefab, Vector3.zero, Quaternion.identity);
|
||||
_spawnedSpecialRoot.name = $"Floor_{floor.Index}_Special_{floor.SpecialId}";
|
||||
}
|
||||
TeleportPlayer(specialPlayerSpawnPoint);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 1. Строим 3D-оболочку (пол, потолок, стены, двери)
|
||||
if (shellSpawner != null)
|
||||
{
|
||||
CurrentShell = shellSpawner.Spawn(floor);
|
||||
|
||||
// 2. Оформляем комнаты (материалы, свет, GPU-лайтмапы, враги)
|
||||
if (CurrentShell != null && roomGenerators != null)
|
||||
{
|
||||
roomGenerators.Run(CurrentShell, floor);
|
||||
}
|
||||
|
||||
// 3. Создаём триггер лифта для перехода на следующий этаж
|
||||
if (CurrentShell != null && floor.Lift != null)
|
||||
{
|
||||
LiftTrigger.CreateInRoom(floor.Lift, CurrentShell.Root, this);
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Ставим игрока в центр стартовой комнаты этажа
|
||||
if (floor.Start != null)
|
||||
{
|
||||
Vector3 startWorld = LevelGrid.ToWorld(floor.Start.Center, playerSpawnHeight);
|
||||
TeleportPlayer(startWorld);
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log($"Загружен этаж {CurrentFloorIndex + 1} из {Floors.Count}");
|
||||
OnFloorChanged?.Invoke(CurrentFloorIndex, Floors.Count);
|
||||
}
|
||||
|
||||
public void AdvanceToNextFloor()
|
||||
{
|
||||
int nextIndex = CurrentFloorIndex + 1;
|
||||
if (nextIndex < Floors.Count)
|
||||
{
|
||||
LoadFloor(nextIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
CompleteTower();
|
||||
}
|
||||
}
|
||||
|
||||
private void UnloadCurrentFloor()
|
||||
{
|
||||
_lockedCombatRoom = null;
|
||||
CurrentPlayerRoom = null;
|
||||
|
||||
if (CurrentShell != null && CurrentShell.Root != null)
|
||||
{
|
||||
Destroy(CurrentShell.Root.gameObject);
|
||||
}
|
||||
CurrentShell = null;
|
||||
|
||||
if (_spawnedSpecialRoot != null)
|
||||
{
|
||||
Destroy(_spawnedSpecialRoot);
|
||||
_spawnedSpecialRoot = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void TeleportPlayer(Vector3 worldPos)
|
||||
{
|
||||
if (playerObject == null) return;
|
||||
|
||||
var rb = playerObject.GetComponent<Rigidbody>();
|
||||
if (rb != null)
|
||||
{
|
||||
rb.linearVelocity = Vector3.zero;
|
||||
rb.position = worldPos;
|
||||
}
|
||||
playerObject.transform.position = worldPos;
|
||||
}
|
||||
|
||||
private void CompleteTower()
|
||||
{
|
||||
if (IsTowerCompleted) return;
|
||||
IsTowerCompleted = true;
|
||||
Debug.Log("БАШНЯ ПРОЙДЕНА! Вы добрались до вершины!");
|
||||
OnTowerCleared?.Invoke();
|
||||
}
|
||||
|
||||
// ---------- 3. Оркестрация комнат и дверей в бою ----------
|
||||
|
||||
private void UpdatePlayerRoomAndDoors()
|
||||
{
|
||||
Vector3 p = playerObject.transform.position;
|
||||
CurrentPlayerRoom = FindRoomAtPosition(p);
|
||||
|
||||
if (!lockDoorsInCombat) return;
|
||||
|
||||
// Если комната уже заблокирована боем — проверяем, остались ли живые враги
|
||||
if (_lockedCombatRoom != null)
|
||||
{
|
||||
if (!HasAliveEnemies(_lockedCombatRoom))
|
||||
{
|
||||
// Все враги убиты или захвачены — отпираем двери!
|
||||
SetRoomDoorsLocked(_lockedCombatRoom, false);
|
||||
_lockedCombatRoom = null;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Если игрок вошёл в новую комнату (не Start и не Corridor), где есть враги — запираем двери
|
||||
if (CurrentPlayerRoom != null &&
|
||||
CurrentPlayerRoom.Data.rt != RoomType.Start &&
|
||||
CurrentPlayerRoom.Data.rt != RoomType.Corridor &&
|
||||
HasAliveEnemies(CurrentPlayerRoom))
|
||||
{
|
||||
// Проверяем, что игрок зашёл глубже 1.2 метра внутрь комнаты (чтобы не прищемить его в дверях)
|
||||
Vector3 min = CurrentPlayerRoom.OriginMeters;
|
||||
Vector3 max = min + CurrentPlayerRoom.SizeMeters;
|
||||
bool insideDeepEnough =
|
||||
p.x > min.x + 1.2f && p.x < max.x - 1.2f &&
|
||||
p.z > min.z + 1.2f && p.z < max.z - 1.2f;
|
||||
|
||||
if (insideDeepEnough)
|
||||
{
|
||||
_lockedCombatRoom = CurrentPlayerRoom;
|
||||
SetRoomDoorsLocked(_lockedCombatRoom, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private RoomView FindRoomAtPosition(Vector3 worldPos)
|
||||
{
|
||||
if (CurrentShell == null) return null;
|
||||
|
||||
foreach (var view in CurrentShell.Views)
|
||||
{
|
||||
Vector3 min = view.OriginMeters;
|
||||
Vector3 max = min + view.SizeMeters;
|
||||
if (worldPos.x >= min.x && worldPos.x <= max.x &&
|
||||
worldPos.z >= min.z && worldPos.z <= max.z)
|
||||
{
|
||||
return view;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static bool HasAliveEnemies(RoomView room)
|
||||
{
|
||||
if (room == null || room.Enemies == null) return false;
|
||||
for (int i = room.Enemies.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var e = room.Enemies[i];
|
||||
// Считаем только тех живых врагов, в которых сейчас НЕ сидит игрок!
|
||||
if (e != null && !e.IsDead && !e.IsPossessed) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void SetRoomDoorsLocked(RoomView room, bool locked)
|
||||
{
|
||||
if (CurrentShell == null) return;
|
||||
|
||||
// Находим все двери в радиусе границ этой комнаты (включая входные двери из соседнего коридора)
|
||||
Vector3 min = room.OriginMeters - new Vector3(1f, 0f, 1f);
|
||||
Vector3 max = room.OriginMeters + room.SizeMeters + new Vector3(1f, 0f, 1f);
|
||||
|
||||
foreach (var door in CurrentShell.AllDoors)
|
||||
{
|
||||
if (door == null) continue;
|
||||
Vector3 dp = door.transform.position;
|
||||
if (dp.x >= min.x && dp.x <= max.x && dp.z >= min.z && dp.z <= max.z)
|
||||
{
|
||||
door.SetLocked(locked);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1cab54e4aa143c2a0098f3d1600ee0e
|
||||
timeCreated: 1793876690
|
||||
@@ -5,19 +5,10 @@ using Random = UnityEngine.Random;
|
||||
|
||||
namespace _Project.Scripts.LevelGenerating
|
||||
{
|
||||
// =====================================================================
|
||||
// НЕ ЗАБЫТЬ:
|
||||
// 1. Поля инспектора - в МЕТРАХ. Внутри генератора всё в МОДУЛЯХ (0.5 м), см. ReadSettings().
|
||||
// 2. Размеры комнат только чётные в модулях (целые метры): метод Even().
|
||||
// 3. Данные этажа лежат в FloorData (_data). Статический LevelManager.Rooms больше не используется.
|
||||
// 4. TODO: переименовать Room.isWallable (сейчас значит "комнату ужали об край карты").
|
||||
// 5. TODO: спавн маркеров в Generate() временный. Он переедет в стадию "оболочка" (стены, пол).
|
||||
// 6. Этаж с боссом (крыша) сюда не попадает: это FloorKind.Special, собирается вручную.
|
||||
// =====================================================================
|
||||
public class WallsGenerator : MonoBehaviour
|
||||
{
|
||||
// ---- Настройки в метрах ----
|
||||
[SerializeField] private int floorsCount;
|
||||
[SerializeField] private int floorsCount = 3;
|
||||
[SerializeField] private int lengthWallMin;
|
||||
[SerializeField] private int lengthWallMax;
|
||||
[SerializeField] private int lengthStartRoom;
|
||||
@@ -32,14 +23,14 @@ namespace _Project.Scripts.LevelGenerating
|
||||
[SerializeField] private GameObject GameObjectA;
|
||||
[SerializeField] private GameObject GameObjectB;
|
||||
[SerializeField] private GameObject Player;
|
||||
[SerializeField] private ShellSpawner shellSpawner; // если назначен, строит пол, стены и потолок
|
||||
[SerializeField] private RoomGeneratorRegistry roomGenerators; // оформляет комнаты по темам (материалы, свет)
|
||||
[SerializeField] private ShellSpawner shellSpawner;
|
||||
[SerializeField] private RoomGeneratorRegistry roomGenerators;
|
||||
|
||||
[Header("Генерация")]
|
||||
[SerializeField] private int maxRooms = 15;
|
||||
[SerializeField, Range(0f, 1f)] private float branchChance = 0.7f;
|
||||
[SerializeField] private float roomMargin = 2f; // зазор между комнатами, метры
|
||||
[SerializeField] private bool liftDoorAnyPosition = false; // true, если дверь лифта может быть не по центру
|
||||
[SerializeField] private float roomMargin = 2f;
|
||||
[SerializeField] private bool liftDoorAnyPosition = false;
|
||||
|
||||
// ---- Те же настройки в модулях (заполняет ReadSettings) ----
|
||||
private int _wallMin, _wallMax, _startSize, _liftLen, _liftWid, _floor, _corrLen, _corrWid, _margin;
|
||||
@@ -53,6 +44,7 @@ namespace _Project.Scripts.LevelGenerating
|
||||
private readonly Dictionary<Room, Room> _corridorOf = new Dictionary<Room, Room>();
|
||||
|
||||
public FloorData Data => _data;
|
||||
public int FloorsCount => Mathf.Max(1, floorsCount);
|
||||
|
||||
private static readonly ExitsInRoomType[] AllDirs =
|
||||
{
|
||||
@@ -64,13 +56,21 @@ namespace _Project.Scripts.LevelGenerating
|
||||
private static readonly RoomType[] FullRoles = { RoomType.Storage, RoomType.SwitchboardRoom, RoomType.BoilerRoom };
|
||||
|
||||
void Start()
|
||||
{
|
||||
ReadSettings();
|
||||
var data = Generate(0); // позже этим будет управлять оркестратор
|
||||
var pos = data.Start.Center;
|
||||
Player.transform.position = new Vector3(pos.x/2f, 1, pos.y/2f);
|
||||
{
|
||||
InitializeSettings();
|
||||
|
||||
// Если в сцене есть TowerOrchestrator — он сам управляет генерацией всех этажей и спавном игрока!
|
||||
if (FindFirstObjectByType<TowerOrchestrator>() != null)
|
||||
return;
|
||||
|
||||
var data = Generate(0);
|
||||
var pos = data.Start.Center;
|
||||
if (Player != null)
|
||||
Player.transform.position = new Vector3(pos.x / 2f, 2f, pos.y / 2f);
|
||||
}
|
||||
|
||||
public void InitializeSettings() => ReadSettings();
|
||||
|
||||
void ReadSettings()
|
||||
{
|
||||
_wallMin = LevelGrid.FromMeters(lengthWallMin);
|
||||
@@ -88,7 +88,7 @@ namespace _Project.Scripts.LevelGenerating
|
||||
void OnValidate()
|
||||
{
|
||||
lengthWallMax = Mathf.Max(lengthWallMax, lengthWallMin);
|
||||
minRoomCount = Mathf.Min(minRoomCount, maxRooms + 1); // +1 за лифт
|
||||
minRoomCount = Mathf.Min(minRoomCount, maxRooms + 1);
|
||||
|
||||
if (lengthFloor < lengthStartRoom + corridorLength + Mathf.Max(lengthLiftRoom, widthLiftRoom))
|
||||
Debug.LogWarning("lengthFloor слишком мал для старта + коридора + лифта");
|
||||
@@ -104,8 +104,10 @@ namespace _Project.Scripts.LevelGenerating
|
||||
_curRooms = 0;
|
||||
}
|
||||
|
||||
public FloorData Generate(int floorIndex)
|
||||
// Генерирует ТОЛЬКО данные одного этажа (комнаты, роли, стены, проёмы) для Оркестратора
|
||||
public FloorData GenerateLayoutOnly(int floorIndex)
|
||||
{
|
||||
InitializeSettings();
|
||||
bool ok = false;
|
||||
|
||||
// Фаза 1: все ограничения, без обрезки веток
|
||||
@@ -122,23 +124,31 @@ namespace _Project.Scripts.LevelGenerating
|
||||
ResetState(floorIndex);
|
||||
CreateStartRoom();
|
||||
ok = PlaceElevator();
|
||||
if (ok) Debug.LogWarning("Этаж собран в аварийном режиме: ограничения ослаблены");
|
||||
if (ok) Debug.LogWarning($"Этаж {floorIndex}: собран в аварийном режиме (ограничения ослаблены)");
|
||||
}
|
||||
|
||||
if (!ok) Debug.LogError("Лифт не помещается: проверь размеры карты, лифта и коридора");
|
||||
if (!ok) Debug.LogError($"Этаж {floorIndex}: Лифт не помещается! Проверь размеры карты, лифта и коридора.");
|
||||
|
||||
AssignRoles();
|
||||
ShellBuilder.Build(_data); // отрезки стен (только данные)
|
||||
ShellBuilder.Build(_data);
|
||||
return _data;
|
||||
}
|
||||
|
||||
// Полная генерация + спавн одного этажа (если используется без Оркестратора)
|
||||
public FloorData Generate(int floorIndex)
|
||||
{
|
||||
GenerateLayoutOnly(floorIndex);
|
||||
|
||||
if (shellSpawner != null)
|
||||
{
|
||||
var shell = shellSpawner.Spawn(_data); // меши: пол, потолок, стены по комнатам
|
||||
var shell = shellSpawner.Spawn(_data);
|
||||
if (shell != null && roomGenerators != null)
|
||||
roomGenerators.Run(shell, _data); // оформление каждой комнаты (материалы, свет)
|
||||
roomGenerators.Run(shell, _data);
|
||||
}
|
||||
else SpawnMarkers(); // временно, если спавнер не назначен
|
||||
else SpawnMarkers();
|
||||
return _data;
|
||||
}
|
||||
|
||||
|
||||
// Роли для комнат без назначения: ужатые об край карты и обычные берут разные пулы
|
||||
void AssignRoles()
|
||||
|
||||
@@ -16,10 +16,11 @@ namespace _Project.Scripts.PlayerUtils
|
||||
[Tooltip("С какого максимального расстояния прицел замечает врага и показывает сферу зоны")]
|
||||
[SerializeField] private float maxAimLookDistance = 60f;
|
||||
[SerializeField] private float possessDashDuration = 0.15f;
|
||||
[Tooltip("На сколько секунд враг оглушён после того, как ты выпрыгнул из его тела")]
|
||||
[SerializeField] private float hostReleaseStunTime = 0.85f;
|
||||
[SerializeField] private LayerMask possessRayMask = ~0;
|
||||
|
||||
[Header("Визуал Сферы Зоны Вселения")]
|
||||
[Tooltip("Если true — сфера рисуется вокруг врага (показывая зону, куда надо войти). Если false — вокруг игрока.")]
|
||||
[SerializeField] private bool centerSphereOnTarget = true;
|
||||
[SerializeField] private Color zoneReadyColor = new Color(0.1f, 0.95f, 1f, 0.10f);
|
||||
[SerializeField] private Color zoneOutOfRangeColor = new Color(1f, 0.35f, 0.35f, 0.06f);
|
||||
@@ -27,7 +28,6 @@ namespace _Project.Scripts.PlayerUtils
|
||||
[Header("Замедление времени в форме Духа")]
|
||||
[SerializeField, Range(0.1f, 1f)] private float spiritTimeScale = 0.45f;
|
||||
|
||||
// Ивент окончательной смерти игрока (когда убили в форме Духа)
|
||||
public event Action OnPlayerDied;
|
||||
|
||||
public BodyProfile CurrentProfile { get; private set; }
|
||||
@@ -46,6 +46,9 @@ namespace _Project.Scripts.PlayerUtils
|
||||
private bool _isTransitioning;
|
||||
private float _invulnerableTimer;
|
||||
|
||||
// Ссылка на живого врага, в теле которого мы сейчас находимся!
|
||||
private EnemyAI _possessedHost;
|
||||
|
||||
private GameObject _zoneSphere;
|
||||
private Renderer _zoneRenderer;
|
||||
private Material _zoneMaterial;
|
||||
@@ -61,7 +64,7 @@ namespace _Project.Scripts.PlayerUtils
|
||||
private void Start()
|
||||
{
|
||||
_camTransform = Player.Instance.CameraController.CameraTransform;
|
||||
EnterSpiritForm(false);
|
||||
EnterSpiritForm(false, false);
|
||||
}
|
||||
|
||||
private void CreatePossessionZoneSphere()
|
||||
@@ -151,13 +154,15 @@ namespace _Project.Scripts.PlayerUtils
|
||||
{
|
||||
if (Keyboard.current == null) return;
|
||||
|
||||
// Клавиша E — Вселиться в нового врага
|
||||
if (Keyboard.current.eKey.wasPressedThisFrame && AimedEnemy != null && IsTargetInPossessZone)
|
||||
{
|
||||
StartCoroutine(PossessRoutine(AimedEnemy));
|
||||
}
|
||||
// Клавиша Q — Добровольно выпрыгнуть из живого тела (оно останется жить и атаковать нас!)
|
||||
else if (Keyboard.current.qKey.wasPressedThisFrame && !IsInSpiritForm)
|
||||
{
|
||||
EnterSpiritForm(true);
|
||||
EnterSpiritForm(true, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,16 +171,22 @@ namespace _Project.Scripts.PlayerUtils
|
||||
_isTransitioning = true;
|
||||
if (_zoneSphere != null) _zoneSphere.SetActive(false);
|
||||
|
||||
// Если мы перепрыгиваем в новое тело напрямую из старого живого тела —
|
||||
// оставляем старое живое тело позади себя!
|
||||
ReleaseCurrentHost(CurrentHealth > 0f);
|
||||
|
||||
BodyProfile newProfile = target.profile != null
|
||||
? target.profile
|
||||
: BodyProfile.CreateDefault(target.enemyClass);
|
||||
float inheritedHealth = Mathf.Max(target.CurrentHealth, newProfile.maxHealth * 0.5f);
|
||||
|
||||
float inheritedHealth = target.CurrentHealth;
|
||||
Vector3 startPos = transform.position;
|
||||
Vector3 endPos = target.transform.position;
|
||||
Quaternion targetRot = target.transform.rotation;
|
||||
|
||||
Destroy(target.gameObject);
|
||||
// Прячем тело нового носителя вместо удаления!
|
||||
_possessedHost = target;
|
||||
_possessedHost.OnPossessedByPlayer();
|
||||
|
||||
float elapsed = 0f;
|
||||
while (elapsed < possessDashDuration)
|
||||
@@ -194,16 +205,46 @@ namespace _Project.Scripts.PlayerUtils
|
||||
_isTransitioning = false;
|
||||
}
|
||||
|
||||
public void EnterSpiritForm(bool ejectImpulse)
|
||||
// Освобождает (или уничтожает, если убито) текущее захваченное тело врага
|
||||
private void ReleaseCurrentHost(bool hostSurvived)
|
||||
{
|
||||
if (_possessedHost == null) return;
|
||||
|
||||
if (hostSurvived && CurrentHealth > 0f)
|
||||
{
|
||||
// Возвращаем врага в мир на текущей позиции игрока (поднимаем чуть над полом по размеру его капсулы)
|
||||
float halfHeight = _possessedHost.transform.localScale.y;
|
||||
Vector3 releasePos = new Vector3(transform.position.x, transform.position.y + halfHeight * 0.5f, transform.position.z);
|
||||
|
||||
_possessedHost.OnReleasedFromPossession(
|
||||
releasePos,
|
||||
transform.rotation,
|
||||
CurrentHealth,
|
||||
hostReleaseStunTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Тело было убито в бою (0 HP) — уничтожаем его окончательно
|
||||
Destroy(_possessedHost.gameObject);
|
||||
}
|
||||
|
||||
_possessedHost = null;
|
||||
}
|
||||
|
||||
public void EnterSpiritForm(bool ejectImpulse, bool hostSurvived = false)
|
||||
{
|
||||
if (IsDead) return;
|
||||
|
||||
// Возвращаем или уничтожаем старое тело перед выходом в Духа
|
||||
ReleaseCurrentHost(hostSurvived);
|
||||
|
||||
ApplyProfile(spiritProfile, spiritProfile.maxHealth);
|
||||
_invulnerableTimer = 0.5f;
|
||||
|
||||
if (ejectImpulse && Player.Instance.Movement != null)
|
||||
{
|
||||
Player.Instance.Movement.AddVerticalImpulse(8f);
|
||||
// При добровольном выходе из живого тела слегка отбрасываем Духа вверх и назад от оставленного врага
|
||||
Player.Instance.Movement.AddVerticalImpulse(8.5f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,13 +273,12 @@ namespace _Project.Scripts.PlayerUtils
|
||||
{
|
||||
if (!IsInSpiritForm)
|
||||
{
|
||||
// Тело уничтожено — выбрасывает обратно в Духа
|
||||
// Тело убито (hostSurvived = false -> старый враг уничтожается)
|
||||
Debug.Log("Носитель уничтожен! Выброс в форму Духа!");
|
||||
EnterSpiritForm(true);
|
||||
EnterSpiritForm(true, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Убили самого Духа — проигрыш!
|
||||
Die();
|
||||
}
|
||||
}
|
||||
@@ -252,11 +292,9 @@ namespace _Project.Scripts.PlayerUtils
|
||||
|
||||
if (_zoneSphere != null) _zoneSphere.SetActive(false);
|
||||
|
||||
// Останавливаем время и отключаем управление персонажа
|
||||
Time.timeScale = 0f;
|
||||
Player.Instance.Controls.Player.Disable();
|
||||
|
||||
// Освобождаем курсор мыши для клика по кнопкам панели проигрыша
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
Cursor.visible = true;
|
||||
|
||||
|
||||
@@ -118,6 +118,11 @@ namespace _Project.Scripts.PlayerUtils
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_Project.Scripts.LevelGenerating.TowerOrchestrator.Instance != null)
|
||||
{
|
||||
var orch = _Project.Scripts.LevelGenerating.TowerOrchestrator.Instance;
|
||||
GUI.Label(new Rect(30, 100, 500, 40), $"Этаж башни: {orch.CurrentFloorIndex + 1} / {orch.TotalFloors}", style);
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawFallbackLoseScreen()
|
||||
|
||||
Reference in new issue
Block a user