RPC call made

This commit is contained in:
2023-06-15 12:25:31 -04:00
parent db50852ac9
commit af690289ba
2 changed files with 47 additions and 3 deletions

View File

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