Added the ability to demo correct/incorrect sounds for the player in round 3.

This commit is contained in:
Jamie Greunbaum
2025-06-23 04:12:53 -04:00
parent 09dcf1a6db
commit 34146555fb
2 changed files with 718 additions and 38 deletions
@@ -87,14 +87,17 @@ public class GameManagerRound3 : GameManagerBase
public void CorrectResponse()
{
_AudioManager.PlaySFX(SFXEventType.MapCorrect);
PlayCorrectSound();
GetCurrentMarker().EnablePickup(false);
_SuccessCounter++;
if (_SuccessCounter >= MAX_SUCCESS_COUNT)
{
Debug.LogError("No error. We won.");
HostCardBetweenRoundsInterface GameWinInterface =
(HostCardBetweenRoundsInterface)GetHostCardInterface(RoundSegmentType.BetweenSegments);
GameWinInterface.HeaderUI.text = "The player has won the game.";
}
else
{
@@ -117,7 +120,7 @@ public class GameManagerRound3 : GameManagerBase
UpdateInterface();
}
_AudioManager.PlaySFX(SFXEventType.MapIncorrect);
PlayIncorrectSound();
}
@@ -141,6 +144,17 @@ public class GameManagerRound3 : GameManagerBase
return GetCurrentMap().GetCurrentCity();
}
public void PlayCorrectSound()
{
_AudioManager.PlaySFX(SFXEventType.MapCorrect);
}
public void PlayIncorrectSound()
{
_AudioManager.PlaySFX(SFXEventType.MapIncorrect);
}
private void UpdateInterface()
{
HostCardCaptureCarmenInterface CaptureCarmenInterface =