public WizardTask GetNextTask() { if (!tasks.Any()) { return(null); } WizardTask task = tasks[0]; tasks.RemoveAt(0); return(task); }
private IEnumerator LoadNextTaskInternal() { Debug.Log("Loading next task..."); EnableTransition(); yield return(new WaitForSeconds(STATIC_WAIT_TIME)); //TODO with remote process engine it is better to use a metatask which indicates the finish nextTask = WizardTaskManager.Instance.GetNextTask(); Debug.Log("Task Loaded!"); UpdateContent(); yield return(DisableProgressIndicator()); ActivateMainView(); }
public void LoadFirstTaskAndActivate() { if (mainContent == null) { InitReferences(); } ActivateMainView(false); nextTask = WizardTaskManager.Instance.GetNextTask(); if (nextTask != null) { Debug.Log("first task is ready!"); } else { Debug.LogError("no first task was found!"); } gameObject.SetActive(true); UpdateContent(); ActivateMainView(); }
public void AddTask(WizardTask task) { tasks.Add(task); }