I have an issue where I close the dialogue UI in my script using
Code: Select all
DialogueManager.dialogueUI.Close();
Code: Select all
IEnumerator OpenAtEndOfFrame()
{
yield return new WaitForEndOfFrame();
DialogueManager.dialogueUI.Open();
}
How can I fix this? Thanks.