Add this class to an empty GameObject. More...
Public Types | |
enum | FollowTarget { FollowTarget.Nothing, FollowTarget.Actor, FollowTarget.Conversant } |
Public Member Functions | |
override bool | CanShowPrompt () |
void | OnConversationStart (Transform actor) |
void | OnConversationEnd (Transform actor) |
Public Attributes | |
bool | playerIsActor = true |
bool | canMoveWhileTalking = false |
bool | corgiControlsCameraWhileTalking = false |
bool | disableInventoryWhileTalking = true |
FollowTarget | dialogueUIFollows = FollowTarget.Nothing |
Vector3 | followOffset = Vector3.zero |
string | numActivationsLeftVariable = string.Empty |
Protected Member Functions | |
virtual bool | CanStartConversation () |
override void | ZoneActivated () |
When the button is pressed we start the conversation. More... | |
override void | OnEnable () |
virtual void | OnDisable () |
virtual void | OnRecordPersistentData () |
virtual void | OnApplyPersistentData () |
Add this class to an empty GameObject.
It will automatically add a boxcollider2d, set it to "is trigger". Then customize the conversation zone through the inspector to run a Dialogue System conversation.
override bool PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.CanShowPrompt | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
void PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.OnConversationEnd | ( | Transform | actor | ) |
void PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.OnConversationStart | ( | Transform | actor | ) |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
protected |
When the button is pressed we start the conversation.
bool PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.canMoveWhileTalking = false |
bool PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.corgiControlsCameraWhileTalking = false |
FollowTarget PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.dialogueUIFollows = FollowTarget.Nothing |
bool PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.disableInventoryWhileTalking = true |
Vector3 PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.followOffset = Vector3.zero |
string PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.numActivationsLeftVariable = string.Empty |
bool PixelCrushers.DialogueSystem.CorgiEngine.ConversationZone.playerIsActor = true |