Skip to content

Commit

Permalink
Fixed M4 Audio being played every single frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekbas committed May 17, 2024
1 parent 2b29e40 commit 4fdfeba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TheOneScripting/PlayerScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ public override void Update()
if (Input.GetKeyboardButton(Input.KeyboardCode.SPACEBAR) || Input.GetControllerButton(Input.ControllerButtonCode.R1))
{
Shoot();
attachedGameObject.source.Play(IAudioSource.AudioEvent.W_M4_SHOOT);
}
}
}
Expand Down

0 comments on commit 4fdfeba

Please sign in to comment.