private void WrapUpJob(int index) { FadeUI.FadeScreen(() => { levelManager.CleanLevel(); mainMenuUI.SetWindow(MainMenuUI.WINDOW.JOBS); _jobEntryUIElements[index].gameObject.SetActive(false); }, null, "Job Finished!"); }
private void LoadLevel(int index) { FadeUI.FadeScreen(() => { levelManager.LoadLevelAtIndex(index); mainMenuUI.SetWindow(MainMenuUI.WINDOW.NONE); }, () => { FindObjectOfType <HandController>().Follow = true; }, "En Route!!!"); }
// Start is called before the first frame update private void Start() { transform = gameObject.transform as RectTransform; _canvasRect = GetComponentInParent <Canvas>().transform as RectTransform; SetupUI(); SetWindow(WINDOW.NONE); FadeUI.FadeScreen(() => { SetWindow(WINDOW.MAIN); }, null); }