Added the ability to demo correct/incorrect sounds for the player in round 3.
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user