Sound updates
This commit is contained in:
@@ -328,7 +328,7 @@ namespace Marro.PacManUdon
|
||||
|
||||
if (this.score < scoreToExtraLife && this.score + score >= scoreToExtraLife)
|
||||
{
|
||||
IncrementLives();
|
||||
BonusLifeReached();
|
||||
}
|
||||
|
||||
SetScore(this.score + score);
|
||||
@@ -379,6 +379,12 @@ namespace Marro.PacManUdon
|
||||
statusDisplay.SetExtraLives(extraLives);
|
||||
}
|
||||
|
||||
void BonusLifeReached()
|
||||
{
|
||||
IncrementLives();
|
||||
soundManager.PlayExtraLifeSound();
|
||||
}
|
||||
|
||||
public void SetFrozen(bool frozen, bool ghostIgnoreIfCaught = false, bool ghostKeepAnimating = false)
|
||||
{
|
||||
// Debug.Log($"{gameObject} Set Frozen: {frozen}");
|
||||
@@ -481,6 +487,8 @@ namespace Marro.PacManUdon
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log($"StartTimeSequence: {timeSequence}");
|
||||
|
||||
currentlyInTimeSequence = true;
|
||||
currentTimeSequence = timeSequence;
|
||||
timeSequenceProgress = 0;
|
||||
@@ -553,7 +561,7 @@ namespace Marro.PacManUdon
|
||||
|
||||
private void TimeSequenceExecuteStep(int sequenceProgress)
|
||||
{
|
||||
Debug.Log($"{gameObject} Triggered time sequence step for sequence {currentTimeSequence} with progress {sequenceProgress}");
|
||||
// Debug.Log($"{gameObject} Triggered time sequence step for sequence {currentTimeSequence} with progress {sequenceProgress}");
|
||||
switch (currentTimeSequence)
|
||||
{
|
||||
default:
|
||||
@@ -1308,6 +1316,7 @@ namespace Marro.PacManUdon
|
||||
RestartLevel();
|
||||
SetMazeVisible(true);
|
||||
statusDisplay.SetScoreDisplayVisible(true);
|
||||
soundManager.SuppressSound(false);
|
||||
break;
|
||||
case 1:
|
||||
// Increment level, show ready, show pellets, show lives indicators
|
||||
@@ -1430,6 +1439,7 @@ namespace Marro.PacManUdon
|
||||
case 5:
|
||||
// Unfreeze
|
||||
SetFrozen(false);
|
||||
soundManager.SuppressSound(false);
|
||||
soundManager.StartGhostSound(false);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user