PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent Class Reference

Deprecated by DialogueSystemTrigger. More...

Inheritance diagram for PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent:
Collaboration diagram for PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent:

Classes

class  SetComponentEnabledAction
 

Public Member Functions

override void TryStartActions (Transform actor)
 
override void TryEndActions (Transform actor)
 
void DoAction (SetComponentEnabledAction action, Transform actor)
 
- Public Member Functions inherited from PixelCrushers.DialogueSystem.ActOnDialogueEvent
void OnBarkStart (Transform actor)
 Handles OnBarkStart events.
 
void OnBarkEnd (Transform actor)
 Handles OnBarkEnd events.
 
void OnConversationStart (Transform actor)
 Handles OnConversationStart events.
 
void OnConversationEnd (Transform actor)
 Handles OnConversationEnd events.
 
void OnSequenceStart (Transform actor)
 Handles OnSequenceStart events.
 
void OnSequenceEnd (Transform actor)
 Handles OnSequenceEnd events.
 
void TryStartActions (Transform actor)
 Tries the actions that should run when the event starts (e.g., OnBarkStart).
 
void TryEndActions (Transform actor)
 Tries the actions that should run when the event ends (e.g., OnBarkEnd).
 

Public Attributes

SetComponentEnabledAction[] onStart = new SetComponentEnabledAction[0]
 Actions to take on the "start" event (e.g., OnConversationStart).
 
bool waitOneFrameOnStart = false
 
SetComponentEnabledAction[] onEnd = new SetComponentEnabledAction[0]
 Actions to take on the "end" event (e.g., OnConversationEnd).
 
bool waitOneFrameOnEnd = false
 
- Public Attributes inherited from PixelCrushers.DialogueSystem.ActOnDialogueEvent
DialogueEvent trigger
 The dialogue event that triggers the actions.
 
bool once = false
 Set true if this should only happen once.
 
DialogueDatabase selectedDatabase = null
 

Detailed Description

Deprecated by DialogueSystemTrigger.

Sets components enabled or disabled at the start and/or end of a dialogue event. The older SetEnabledOnDialogueEvent trigger was written for MonoBehaviours. On customer request, this trigger was added to handle renderers and colliders, which aren't MonoBehaviours.

Member Function Documentation

◆ DoAction()

void PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.DoAction ( SetComponentEnabledAction  action,
Transform  actor 
)
inline

◆ TryEndActions()

override void PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.TryEndActions ( Transform  actor)
inline

◆ TryStartActions()

override void PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.TryStartActions ( Transform  actor)
inline

Member Data Documentation

◆ onEnd

SetComponentEnabledAction [] PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.onEnd = new SetComponentEnabledAction[0]

Actions to take on the "end" event (e.g., OnConversationEnd).

◆ onStart

SetComponentEnabledAction [] PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.onStart = new SetComponentEnabledAction[0]

Actions to take on the "start" event (e.g., OnConversationStart).

◆ waitOneFrameOnEnd

bool PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.waitOneFrameOnEnd = false

◆ waitOneFrameOnStart

bool PixelCrushers.DialogueSystem.SetComponentEnabledOnDialogueEvent.waitOneFrameOnStart = false

The documentation for this class was generated from the following file: