initializationComplete?
Posted: Thu Aug 29, 2019 3:50 pm
I need to run some code when DialogueSystem have been initalized. I can see this code in DialogueSystemController:
How do I subscribe to that event from another class?
I also tried to read but I guess I need a reference to the actual dialogueManager instance.
EDIT: I just found, but an event would probably be more efficient than polling
Thank you!
Code: Select all
public event System.Action initializationComplete = delegate { };
I also tried to read
Code: Select all
if (DialogueSystemController.isInitialized)
EDIT: I just found
Code: Select all
DialogueManager.instance.isInitialized
Thank you!