Gun Fix Multiplayer

This commit is contained in:
2023-06-15 11:52:51 -04:00
parent 75c114a14e
commit f668a66bb9
4 changed files with 18 additions and 3 deletions

View File

@ -50,10 +50,18 @@ namespace Item
public bool IsLightOn => targetingLight.gameObject.activeSelf;
//private Dictionary<int,float> projectiles = new Dictionary<int, float>();
public override void OnStartClient()
{
base.OnStartClient();
if (!IsOwner)
{
this.enabled = false;
}
}
// Start is called before the first frame update
private void Start()
{
}
// Update is called once per frame