Class DialogTrigger
- Namespace
- WitShells.DialogsManager
A component that triggers conversations based on collision/trigger events. Requires a Collider component on the same GameObject.
public class DialogTrigger : MonoBehaviour
- Inheritance
-
DialogTrigger
Properties
Conversation
The conversation that will be triggered.
public Conversation Conversation { get; set; }
Property Value
HasTriggered
Whether this trigger has been activated.
public bool HasTriggered { get; }
Property Value
IsInTriggerZone
Whether something is currently inside the trigger zone.
public bool IsInTriggerZone { get; }
Property Value
OnTriggered
Unity event accessor for when dialog is triggered.
public UnityEvent OnTriggered { get; }
Property Value
- UnityEvent
Methods
ResetTrigger()
Resets the trigger to allow it to fire again.
public void ResetTrigger()
TriggerConversation()
Manually trigger the conversation.
public void TriggerConversation()