private void OnPlayerMadeMove() { if (RemainingValue <= 0) { return; } RemainingValue--; OnRemainingValueChanged?.Invoke(RemainingValue); if (RemainingValue > 0) { return; } OnGameOver?.Invoke(); Clear(); }
private void OnOneSecondPassed() { if (RemainingValue <= 0) { return; } RemainingValue--; OnRemainingValueChanged?.Invoke(RemainingValue); if (RemainingValue > 0) { return; } OnGameOver?.Invoke(); Clear(); }