тестирование

This commit is contained in:
lapich committed 2026-10-24 20:54:38 +03:00
1 parent 11d290d572
commit 570e778cda
39 files changed
+2007 -97

No files matched your search

+22 -2
View File
@@ -18,6 +18,21 @@ public class BossArenaController : MonoBehaviour
public bool isLockdownActive = false;
public bool isBossDefeated = false;
public bool AreDoorsLocked => isLockdownActive;
public void LockArenaDoors()
{
isLockdownActive = true;
}
public void BindBossForTest(MutantHealth health)
{
if (health != null)
{
health.OnDied += OnBossDefeated;
}
}
private Vector3 doorOpenPos;
private Vector3 doorClosedPos;
private Coroutine doorMoveCoroutine;
@@ -90,14 +105,19 @@ public class BossArenaController : MonoBehaviour
Debug.Log("<color=green>[Арена Босса] БОСС УНИЧТОЖЕН: ВОРОТА РАЗБЛОКИРОВАНЫ!</color>");
// Звук разблокировки гидравлики
GameAudioSynthesizer.PlayDoorHydraulic();
if (Application.isPlaying)
GameAudioSynthesizer.PlayDoorHydraulic();
// Открываем ворота
if (blastDoorRoot != null)
if (blastDoorRoot != null && Application.isPlaying)
{
if (doorMoveCoroutine != null) StopCoroutine(doorMoveCoroutine);
doorMoveCoroutine = StartCoroutine(RoutineMoveDoor(doorOpenPos, false));
}
else if (blastDoorRoot != null)
{
blastDoorRoot.transform.position = doorOpenPos;
}
// Возвращаем свет в спокойный зеленый/бирюзовый
if (emergencyLight != null)