private void Start() { // todo: logic for selecting ending. managerSelected = globalState.NetScore > 1 ? goodManager : badManager; loader.yarnManager = managerSelected; loader.gameObject.SetActive(true); dialogueUI.gameObject.SetActive(true); dialogueUI.onDialogueEnd.AddListener(() => { managerSelected.QueueNext(); }); dialogueUI.gameObject.SetActive(false); }