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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user