Separated time sequences
This commit is contained in:
22
Assets/Scripts/Sequences/GameOver.cs
Normal file
22
Assets/Scripts/Sequences/GameOver.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Marro.PacManUdon
|
||||
{
|
||||
public partial class GameManager
|
||||
{
|
||||
private void TimeSequenceStepGameOver(int sequenceProgress)
|
||||
{
|
||||
switch (sequenceProgress)
|
||||
{
|
||||
case 0:
|
||||
// Show game over text, freeze power pellet blink
|
||||
statusDisplay.SetGameOverTextVisible(true);
|
||||
pelletManager.FreezePowerPelletsBlink(true);
|
||||
break;
|
||||
case 1:
|
||||
// Stop text blinking, transition to attract screen
|
||||
statusDisplay.SetLabel1UPTextBlinking(false);
|
||||
StartAttractMode();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user