public void NextScenario() { if (BL_LevelComplete) { IN_levelsCompleted++; if (IN_levelsCompleted == 3) { //UI_ScenarioCanvas.SetActive(false); //UI_FinishCanvas.SetActive(true); UI_ScenarioCanvas.SetActive(false); UI_LevelCompleteCanvas.SetActive(true); UI_ProceedButton.SetActive(false); UI_LevelCompleteText.text = "Thank you for participating in this test! Please inform the researcher if you wish to be notified of the results of this study."; } else { SC_LevelManager.NextLevel(); IN_Level++; IN_Scenario++; BL_LevelComplete = false; ChangeText(); UI_ScenarioCanvas.SetActive(false); UI_LevelCompleteCanvas.SetActive(true); UI_LevelCompleteText.text = "You have completed the level!\n\nYour heroes will rest and heal.\n\nPress proceed to delve further into the dungeon."; } } else { IN_Scenario++; ChangeText(); UI_ScenarioCanvas.SetActive(false); UI_InterimCanvas.SetActive(true); } }