void Update() { if (Input.GetKeyDown(KeyCode.H)) { vitals.UseHealthpack(); } if (Input.GetKeyDown(KeyCode.E)) { gunSlot.Drop(); } if (Input.GetKeyDown(KeyCode.R)) { gunSlot.Reload(); } if (Input.GetKeyDown(KeyCode.Q)) { gunSlot.NextWeapon(); } /// /// Handle shooting /// if (Input.GetKey(KeyCode.Mouse0)) { CmdShoot(Input.GetKeyDown(KeyCode.Mouse0)); } }