station 46 room

This commit is contained in:
2023-05-14 18:13:02 +02:00
parent f03d723119
commit eba953b844
31 changed files with 978 additions and 672 deletions

View File

@@ -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;