fix: colliders ProBuilder, cursor lock continu, déduplique CameraOrbitKeyboard

- MeshCollider ajouté sur Floor, 4 murs, CenterPlatform, 4 rampes, 4 piliers
- CameraOrbitKeyboard : enforce cursor lock à chaque frame quand actif (gameplay)
- Suppression du composant CameraOrbitKeyboard dupliqué sur CinemachineCamera

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 12:12:11 +02:00
parent a022d59917
commit 065ae8465f
2 changed files with 2847 additions and 47 deletions

File diff suppressed because one or more lines are too long

View File

@@ -27,6 +27,14 @@ public class CameraOrbitKeyboard : MonoBehaviour
void Update()
{
if (_orbital == null) return;
// Enforce cursor lock while this script is active (Player hierarchy is active = in gameplay)
if (Cursor.lockState != CursorLockMode.Locked)
{
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
}
// Freeze camera orbit (keyboard + mouse) when keybind menu is open
if (KeyBindingUI.IsVisible)
{