Refactor LevelGenerator and GameBootstrap; update project settings for improved performance

This commit is contained in:
2025-12-13 17:54:49 +01:00
parent 2d89493869
commit effcda6b10
5 changed files with 29 additions and 761 deletions

View File

@@ -48,6 +48,7 @@ namespace Infrastructure.Unity
private int _currentDisplayedScore;
private float _inputBlockTimer;
private bool _isPaused;
private bool _levelGenerated;
private void OnEnable()
{
@@ -93,6 +94,8 @@ namespace Infrastructure.Unity
WireEvents();
UpdateScoreUi(_gameSession.Score);
_levelGenerated = true;
}));
}
@@ -115,7 +118,7 @@ namespace Infrastructure.Unity
if (_isPaused) return;
if (!_isGameRunning)
if (!_isGameRunning && _levelGenerated)
{
if (_actions.Player.StartGame.triggered)
{