Небольшой фикс

This commit is contained in:
2026-06-07 04:22:40 +03:00
parent 782eddfeac
commit 9d3cf30c0c
2 changed files with 124 additions and 133 deletions
+4
View File
@@ -37,6 +37,10 @@ public class GameManager : MonoBehaviour
get => _currentState;
set
{
if (_currentState == GameState.Lose ||
_currentState == GameState.Win)
return;
_currentState = value;
_onStateChanged?.Invoke(value);
}