public void SwitchParser() { ClearUIData(); CurrentParser = InitializeParser(SelectNextParser(CurrentParseType)); CurrentParser.ParseJson(); StopAllCoroutines(); StartCoroutine(ProcessSchoolDataToUIWithInterval(CurrentParser.SchoolData, ProcessingTime)); // Update the name of the current parser on the UI CurrentParserText.text = "Parser type: " + CurrentParseType.ToString(); }