private void CheckGameEnd(bool lastWasCorrect) { if (_gameConfig.ImmediateFail && !lastWasCorrect) { Debug.Log("incorrect and immediate fail"); if (!_lost) { _lost = true; CoroutineProvider.Instance.StartCoroutine(LooseLevel()); Debug.Log("initiate lose level"); } } if (TotalPackageCount != ExpectedPackageCount) { return; } if (CorrectPackageCount == ExpectedPackageCount) { _levelWinSignal.Fire(); } else { _levelLostSignal.Fire(); } }
public void ShowWin() { _levelWinSignal.Fire(); }