示例#1
0
    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();
        }
    }
示例#2
0
文件: LevelUI.cs 项目: wheerd/GGJ2018
 public void ShowWin()
 {
     _levelWinSignal.Fire();
 }