Skip to content

Commit

Permalink
disable attacking when paused
Browse files Browse the repository at this point in the history
  • Loading branch information
user5522 committed Sep 10, 2024
1 parent 665ab7c commit 97e04b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/WeaponController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class WeaponController : MonoBehaviour

void Update()
{
if (Pause.isPaused) return;

if (Input.GetMouseButtonDown(0))
{
if (!drewWeapon) DrawWeapon();
Expand Down

0 comments on commit 97e04b9

Please sign in to comment.