S5-VR-Game / game

2 stars 0 forks source link

[Code] Timer is not paused, when game is lost due to integrity < 0 #109

Closed JonasPTFL closed 8 months ago

JonasPTFL commented 9 months ago

Timer should be paused, when the game is over due to integrity < 0. Otherwise, tasks will spawn after the game is over. This could be done by listen to GameInformation.OnGameStateChanged event and call GameTimer.PauseTimer() when state equals GameState.GameWon or GameState.GameLost.