Refactor LevelGenerator and GameBootstrap; update project settings for improved performance
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user