How to Enable/Disable DialogueSystemTrigger
Posted: Fri Apr 14, 2023 10:18 pm
Hey, so I been playing around with the Dialogue System and noticed there's an Action "OnEnabled". From what I understand the documentation explains that the action will trigger when the component is Enabled
I have this block of code that enables the Dialogue System Trigger component on the targeted gameObject.
This works if I were to use BoxCollider2D or any Unity Components but unfortunately it doesn't have the same effect with the Dialogue System Trigger.
I was wondering how I could enable/disable the component from my c# script.
Cheers
I have this block of code that enables the Dialogue System Trigger component on the targeted gameObject.
This works if I were to use BoxCollider2D or any Unity Components but unfortunately it doesn't have the same effect with the Dialogue System Trigger.
I was wondering how I could enable/disable the component from my c# script.
Cheers