From 8120547280f73e64b830b4ee2e0f2573a199d213 Mon Sep 17 00:00:00 2001 From: sebastianhampel1 Date: Thu, 15 Jun 2023 12:31:05 -0400 Subject: [PATCH] Update PlayerInteractionHandler.cs --- Assets/Scripts/Player/PlayerInteractionHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Player/PlayerInteractionHandler.cs b/Assets/Scripts/Player/PlayerInteractionHandler.cs index 60393ce..249d499 100644 --- a/Assets/Scripts/Player/PlayerInteractionHandler.cs +++ b/Assets/Scripts/Player/PlayerInteractionHandler.cs @@ -198,14 +198,14 @@ public class PlayerInteractionHandler : NetworkBehaviour if (Input.GetButtonDown("Fire3")&&inputEnbaled) if (!IsCarrying) { - - SwitchWeaponMode(); - /*GunEnabled = !GunEnabled; + if(!IsServer) + SwitchWeaponMode(); + GunEnabled = !GunEnabled; if (!GunEnabled) pistol.Disable(); pistol.gameObject.SetActive(GunEnabled); if (GunEnabled) - pistol.Enable();*/ + pistol.Enable(); } if (GunEnabled)