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 (!IsCarrying)
{
if(!IsServer)
SwitchWeaponMode();
/*GunEnabled = !GunEnabled;
GunEnabled = !GunEnabled;
if (!GunEnabled)
pistol.Disable();
pistol.gameObject.SetActive(GunEnabled);
if (GunEnabled)
pistol.Enable();*/
pistol.Enable();
}
if (GunEnabled)