From c6ec8ead322eaec79d1e93715c3a2bdac903f985 Mon Sep 17 00:00:00 2001 From: Marek Sorokin Date: Sun, 12 Oct 2025 13:51:51 +0200 Subject: [PATCH] Character camera and movement fix - maybe 3 --- .../Networking/SteamCharacterNetworkBridge.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Game/Scripts/Networking/SteamCharacterNetworkBridge.cs b/Game/Scripts/Networking/SteamCharacterNetworkBridge.cs index 6a2ba6d..32f06b2 100644 --- a/Game/Scripts/Networking/SteamCharacterNetworkBridge.cs +++ b/Game/Scripts/Networking/SteamCharacterNetworkBridge.cs @@ -184,11 +184,21 @@ namespace MegaKoop.Game.Networking { characterController.enabled = true; characterController.SetInputSource(isLocalPlayer ? null : networkInputProxy); + var unityController = characterController.GetComponent(); + if (unityController != null) + { + unityController.enabled = true; + } } else { - characterController.enabled = isLocalPlayer; + characterController.enabled = false; characterController.SetInputSource(null); + var unityController = characterController.GetComponent(); + if (unityController != null) + { + unityController.enabled = false; + } } }