Skip to content

Commit

Permalink
Stop the run sound when the player is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
nfaltermeier committed Apr 24, 2021
1 parent df4a7d1 commit 86ba270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Components/PlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public override void FinalDestroy()
{
base.FinalDestroy();

if (runSound != null)
runSound.Stop();
bAttached = null;
ground = null;

Expand Down

0 comments on commit 86ba270

Please sign in to comment.