コード例 #1
0
 public void NextStageLevelLoad()
 {
     activeLevelConfiguration.IncreaseStageLevelNumber();
     OnStageLevelChanged?.Invoke(activeLevelConfiguration.StageLevelNumberInfo());
     ChangeConfigurationsValuesOnWinStageLevel();
     Debug.Log("Win and increased stage level");
     DefaultLevel.Load(activeLevelConfiguration);
 }
コード例 #2
0
    private IEnumerator WinCoroutine()
    {
        float waitTime = spinnerAnimation.WinAnimation();

        yield return(new WaitForSeconds(waitTime));


        if (activeLevelConfiguration.StageLevelNumberInfo() >= activeLevelConfiguration.MaxStageLevelNumberInfo())
        {
            points.PointsIncrease(activeLevelConfiguration.PointsAfterEndLevel);
            Debug.Log("Win and load start window");
            LoadStartWindow();
        }
        else
        {
            points.PointsIncrease(activeLevelConfiguration.PointsAfterWinStageLevel);
            stageLevelChanger.NextStageLevelLoad();
        }
    }