This is the base class for bark trigger components such as BarkOnIdle and BarkTrigger. More...
Public Member Functions | |
void | TryBark (Transform target) |
Barks if the condition is true. | |
virtual void | TryBark (Transform target, Transform interactor) |
Barks if the condition is true. | |
void | ResetBarkHistory () |
Resets the bark history to the beginning of the list of bark lines. | |
void | OnRecordPersistentData () |
Listens for the OnRecordPersistentData message and records the current bark index. | |
void | OnApplyPersistentData () |
Listens for the OnApplyPersistentData message and retrieves the current bark index. | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.ConversationStarter | |
void | TryStartConversation (Transform actor) |
If the condition is true, starts the conversation between the specified actor and the character that this component is attached to. | |
void | TryStartConversation (Transform actor, Transform interactor) |
If the condition is true, starts the conversation between the specified actor and the character that this component is attached to. | |
Public Attributes | |
BarkOrder | barkOrder = BarkOrder.Random |
Specifies the order to run through the list of barks. | |
bool | allowDuringConversations = false |
Are barks allowed during conversations? | |
bool | cacheBarkLines = false |
If ticked, bark info is cached during the first bark. | |
Public Attributes inherited from PixelCrushers.DialogueSystem.ConversationStarter | |
string | conversation |
The title of the conversation to start. | |
Condition | condition |
The condition required for the conversation to start. | |
bool | skipIfNoValidEntries |
If this is true<c/c> and no valid entries currently link from the start entry, don't start the conversation. | |
bool | exclusive = false |
Only start if no other conversation is active. | |
Transform | conversant |
The conversant of the conversation. | |
bool | useConversationTitlePicker = true |
DialogueDatabase | selectedDatabase = null |
Public Attributes inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
bool | once = false |
Set true if this event should only happen once. | |
Protected Member Functions | |
virtual void | Awake () |
virtual void | Start () |
virtual void | OnEnable () |
virtual void | OnDisable () |
Transform | GetBarker () |
string | GetBarkerName () |
void | BarkCachedLine (Transform speaker, Transform listener) |
void | PopulateCache (Transform speaker, Transform listener) |
void | BarkNextCachedLine (Transform speaker, Transform listener) |
Protected Member Functions inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
void | DestroyIfOnce () |
Protected Attributes | |
BarkHistory | barkHistory |
bool | tryingToBark = false |
ConversationState | cachedState = null |
IBarkUI | barkUI = null |
BarkGroupMember | barkGroupMember = null |
Properties | |
Sequencer | sequencer [get, protected set] |
Gets the sequencer used by the current bark, if a bark is playing. | |
int | BarkIndex [get, set] |
Gets or sets the bark index for sequential barks. | |
Properties inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
virtual bool | useOnce [get] |
This is the base class for bark trigger components such as BarkOnIdle and BarkTrigger.
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Listens for the OnApplyPersistentData message and retrieves the current bark index.
|
inlineprotectedvirtual |
Reimplemented in PixelCrushers.DialogueSystem.BarkTrigger.
|
inlineprotectedvirtual |
Reimplemented in PixelCrushers.DialogueSystem.BarkOnIdle, and PixelCrushers.DialogueSystem.BarkTrigger.
|
inline |
Listens for the OnRecordPersistentData message and records the current bark index.
|
inlineprotected |
|
inline |
Resets the bark history to the beginning of the list of bark lines.
|
inlineprotectedvirtual |
Reimplemented in PixelCrushers.DialogueSystem.BarkOnIdle, and PixelCrushers.DialogueSystem.BarkTrigger.
|
inline |
Barks if the condition is true.
target | Target. |
|
inlinevirtual |
Barks if the condition is true.
target | Target. |
interactor | Interactor to test the condition against. |
Reimplemented in PixelCrushers.DialogueSystem.InkSupport.BarkInkOnIdle.
bool PixelCrushers.DialogueSystem.BarkStarter.allowDuringConversations = false |
Are barks allowed during conversations?
|
protected |
|
protected |
BarkOrder PixelCrushers.DialogueSystem.BarkStarter.barkOrder = BarkOrder.Random |
Specifies the order to run through the list of barks.
|
protected |
bool PixelCrushers.DialogueSystem.BarkStarter.cacheBarkLines = false |
If ticked, bark info is cached during the first bark.
This can reduce stutter when barking on slower mobile devices, but barks are not reevaluated each time as the state changes, barks use no em formatting codes, and sequences are not played with barks.
|
protected |
|
protected |
|
getset |
Gets or sets the bark index for sequential barks.
The index of the bark, starting from 0
.
|
getprotected set |
Gets the sequencer used by the current bark, if a bark is playing.
If a bark is not playing, this is undefined. To check if a bark is playing, check the bark UI's IsPlaying property.
The sequencer.