+Add : Blocking test & Cleanup

This commit is contained in:
Ferlat Thibaud
2026-03-26 02:37:05 +01:00
parent 0c0a539af3
commit 900cc079c8
85 changed files with 101475 additions and 1084 deletions
@@ -32,7 +32,7 @@ namespace Unheimlich.World.CameraSystem
[Header("Zoom Settings")]
[SerializeField] private float _minDistance = 0.5f;
[SerializeField] private float _maxDistance = 3f;
[SerializeField] private float _zoomSpeed = 2f;
// [SerializeField] private float _zoomSpeed = 2f;
[SerializeField] private float _zoomSmoothTime = 0.15f;
[SerializeField] private float _scrollSensitivity = 0.3f;
@@ -153,8 +153,6 @@ namespace Unheimlich.World.Environment
BuildTower();
_currentState = StairState.Active;
Debug.Log($"[InfiniteStaircase] Activated — {(_enteredFromBelow ? "UP" : "DOWN")}, {_maxIterations} iterations.");
}
/// <summary>Called by <see cref="StaircaseTriggerZone"/> when the player exits. No action needed — the limit check drives the stop.</summary>
@@ -284,10 +282,7 @@ namespace Unheimlich.World.Environment
: _towerRoot.localPosition.y >= _limitLocalY; // going down, tower ascended enough
if (reached)
{
_currentState = StairState.Stopping;
Debug.Log("[InfiniteStaircase] Stock exhausted — decelerating.");
}
_currentState = StairState.Stopping;
}
/// <summary>
@@ -330,7 +325,6 @@ namespace Unheimlich.World.Environment
_scrollSpeedVelocity = 0f;
_playerTransform = null;
Debug.Log("[InfiniteStaircase] Cleanup done — ready for next interaction.");
}
// ─── Helpers ─────────────────────────────────────────────────────────
@@ -339,7 +333,6 @@ namespace Unheimlich.World.Environment
{
if (_centralColumnRenderer == null) return;
_segmentHeight = _centralColumnRenderer.bounds.size.y;
Debug.Log($"[InfiniteStaircase] Auto-detected height: {_segmentHeight:F3} m");
}
private void CacheTriggerCenterY()
@@ -353,10 +346,8 @@ namespace Unheimlich.World.Environment
Collider col = zone.GetComponent<Collider>();
if (col != null)
{
_triggerCenterWorldY = col.bounds.center.y;
Debug.Log($"[InfiniteStaircase] Trigger center Y: {_triggerCenterWorldY:F3}");
}
}
private void EnsurePlayerCached()