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.
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 callGameTimer.PauseTimer()
when state equalsGameState.GameWon
orGameState.GameLost
.