BarkController is a static utility class provides a method to make characters bark.
More...
|
static IEnumerator | Bark (string conversationTitle, Transform speaker, Transform listener, BarkHistory barkHistory, DialogueDatabase database=null, bool stopAtFirstValid=false) |
| Attempts to make a character bark. More...
|
|
static IEnumerator | Bark (Subtitle subtitle, Transform speaker, Transform listener, IBarkUI barkUI) |
| Attempts to make a character bark. More...
|
|
static IEnumerator | Bark (Subtitle subtitle, bool skipSequence=false) |
| Attempts to make a character bark. More...
|
|
BarkController is a static utility class provides a method to make characters bark.
◆ Bark() [1/3]
static IEnumerator PixelCrushers.DialogueSystem.BarkController.Bark |
( |
string |
conversationTitle, |
|
|
Transform |
speaker, |
|
|
Transform |
listener, |
|
|
BarkHistory |
barkHistory, |
|
|
DialogueDatabase |
database = null , |
|
|
bool |
stopAtFirstValid = false |
|
) |
| |
|
static |
Attempts to make a character bark.
This is a coroutine; you must start it using StartCoroutine() or Unity will hang. Shows a line from the named conversation, plays the sequence, and sends OnBarkStart/OnBarkEnd messages to the participants.
- Parameters
-
conversationTitle | Title of conversation to pull bark lines from. |
speaker | Speaker performing the bark. |
listener | Listener that the bark is directed to; may be null . |
barkHistory | Bark history used to keep track of the most recent bark so this method can iterate through them in a specified order. |
database | The dialogue database to use. If null , uses DialogueManager.MasterDatabase. |
◆ Bark() [2/3]
static IEnumerator PixelCrushers.DialogueSystem.BarkController.Bark |
( |
Subtitle |
subtitle, |
|
|
bool |
skipSequence = false |
|
) |
| |
|
static |
Attempts to make a character bark.
This is a coroutine; you must start it using StartCoroutine() or Unity will hang. Shows a specific subtitle and plays the sequence, but does not send OnBarkStart/OnBarkEnd messages to the participants.
- Parameters
-
subtitle | Subtitle to bark. |
skipSequence | If true , don't play the sequence associated with the subtitle. |
◆ Bark() [3/3]
static IEnumerator PixelCrushers.DialogueSystem.BarkController.Bark |
( |
Subtitle |
subtitle, |
|
|
Transform |
speaker, |
|
|
Transform |
listener, |
|
|
IBarkUI |
barkUI |
|
) |
| |
|
static |
Attempts to make a character bark.
This is a coroutine; you must start it using StartCoroutine() or Unity will hang. Shows a specific subtitle and plays the sequence, but does not send OnBarkStart/OnBarkEnd messages to the participants. This optimized version
- Parameters
-
subtitle | Subtitle to bark. |
speaker | Speaker performing the bark. |
listener | Listener that the bark is directed to; may be null . |
barkUI | The bark UI to bark with. |
◆ LastSequencer
Sequencer PixelCrushers.DialogueSystem.BarkController.LastSequencer |
|
staticget |
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Core/Model-View-Controller/Controller/BarkController.cs