// --------------------------------------- Other functions --------------------------------------- // Makes specific objects visible/invisible based on when they should be active protected override IEnumerator ActivateTaskObjects(bool active) { sortSettings.FillTooltips("Loading setup...", false); yield return(loading); // Settings menu sortSettings.ActiveInScene(!active); // Sorting table sortingTable.ActiveInScene(active); demoDevice.gameObject.SetActive(active && SortSettings.IsDemo()); //Debug.Log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Demo device active: " + (active && SortSettings.IsDemo())); yield return(loading); if (active) { displayUnitManager.SetTextWithIndex(UtilSort.RIGHT_BLACKBOARD, "Teaching mode: " + sortSettings.TeachingMode, 1); } else { sortSettings.FillTooltips("Loading complete!", false); } }