public void NextStageLevelLoad() { activeLevelConfiguration.IncreaseStageLevelNumber(); OnStageLevelChanged?.Invoke(activeLevelConfiguration.StageLevelNumberInfo()); ChangeConfigurationsValuesOnWinStageLevel(); Debug.Log("Win and increased stage level"); DefaultLevel.Load(activeLevelConfiguration); }
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(); } }