Skip to content

Commit

Permalink
sound
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiserErkol committed Jun 19, 2024
1 parent c5d9cb1 commit b9063f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EcoHome-VR/Assets/Scripts/WaterSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public void UseBasinSwitcher(GameObject pressedSwitch)
Playerchall.localScoreCounter += 1;
Playerchall.globalScoreCounter += 1;
Playerchall.displayScoreCounter += 1;
audioPlayer.loop = false
audioPlayer.loop = false;
audioPlayer.Stop();
}
else
{
Player.localScoreCounter += 1;
Player.globalScoreCounter += 1;
Player.displayScoreCounter += 1;
audioPlayer.loop = false
audioPlayer.loop = false;
audioPlayer.Stop();
}
}
Expand All @@ -85,15 +85,15 @@ public void UseBasinSwitcher(GameObject pressedSwitch)
Playerchall.localScoreCounter -= 1;
Playerchall.globalScoreCounter -= 1;
Playerchall.displayScoreCounter -= 1;
audioPlayer.loop = true
audioPlayer.loop = true;
audioPlayer.PlayOneShot(clip_1);
}
else
{
Player.localScoreCounter -= 1;
Player.globalScoreCounter -= 1;
Player.displayScoreCounter -= 1;
audioPlayer.loop = true
audioPlayer.loop = true;
audioPlayer.PlayOneShot(clip_1);
}
}
Expand Down

0 comments on commit b9063f1

Please sign in to comment.