Update PlayerInteractionHandler.cs

This commit is contained in:
sebastianhampel1 2023-06-15 12:31:05 -04:00
parent 1ccfeaecb0
commit 8120547280

View File

@ -198,14 +198,14 @@ public class PlayerInteractionHandler : NetworkBehaviour
if (Input.GetButtonDown("Fire3")&&inputEnbaled) if (Input.GetButtonDown("Fire3")&&inputEnbaled)
if (!IsCarrying) if (!IsCarrying)
{ {
if(!IsServer)
SwitchWeaponMode(); SwitchWeaponMode();
/*GunEnabled = !GunEnabled; GunEnabled = !GunEnabled;
if (!GunEnabled) if (!GunEnabled)
pistol.Disable(); pistol.Disable();
pistol.gameObject.SetActive(GunEnabled); pistol.gameObject.SetActive(GunEnabled);
if (GunEnabled) if (GunEnabled)
pistol.Enable();*/ pistol.Enable();
} }
if (GunEnabled) if (GunEnabled)