Update PlayerInteractionHandler.cs
This commit is contained in:
parent
1ccfeaecb0
commit
8120547280
@ -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)
|
||||||
|
Reference in New Issue
Block a user