Table of Contents

Class DialogTrigger

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

Conversation

HasTriggered

Whether this trigger has been activated.

public bool HasTriggered { get; }

Property Value

bool

IsInTriggerZone

Whether something is currently inside the trigger zone.

public bool IsInTriggerZone { get; }

Property Value

bool

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()