void ShowNextImage() { progressPresenter.currentCount = currentIndex; if (currentIndex < classList.Count) { currentClass = classList[currentIndex]; imageCreator.LoadImage(currentClass); currentIndex++; } else { if (!finishedFlag) { jsonCreator.CreateJson(cm_Data); progressPresenter.ShowFinishMessage(); finishedFlag = true; } } }
void ShowNextImage() { progressPresenter.currentCount = currentIndex; if (currentIndex < classList.Count) { currentClass = classList[currentIndex]; imageCreator.LoadImage(currentClass); currentIndex++; } else { if (!finishedFlag) { correctLabel.gameObject.SetActive(false); progressPresenter.ShowFinishMessage(); finishedFlag = true; StartCoroutine(LoadSceneDelay(2.0f)); } } }