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:
File diff suppressed because one or more lines are too long
@@ -27,6 +27,14 @@ public class CameraOrbitKeyboard : MonoBehaviour
|
|||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (_orbital == null) return;
|
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
|
// Freeze camera orbit (keyboard + mouse) when keybind menu is open
|
||||||
if (KeyBindingUI.IsVisible)
|
if (KeyBindingUI.IsVisible)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user