station 46 room
This commit is contained in:
@@ -130,6 +130,7 @@ namespace EscapeRoomEngine.Engine.Runtime.UI
|
||||
public void StartGame()
|
||||
{
|
||||
gameState = GameState.Running;
|
||||
PauseGame(); // the time is not running during the intro
|
||||
|
||||
TimeElapsed = 0;
|
||||
|
||||
@@ -174,6 +175,12 @@ namespace EscapeRoomEngine.Engine.Runtime.UI
|
||||
pauseButton.GetComponent<PauseButton>().Paused = true;
|
||||
break;
|
||||
case GameState.Paused:
|
||||
// check if the intro portal should be activated
|
||||
if (Engine.Instance.NumberOfRooms == 1)
|
||||
{
|
||||
Engine.Instance.CurrentRoom.Unwrap().SkipRoom();
|
||||
}
|
||||
|
||||
gameState = GameState.Running;
|
||||
pauseButton.GetComponent<PauseButton>().Paused = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user