IArticyFlowPlayerCallbacks Interface |
Namespace: Articy.Unity
public interface IArticyFlowPlayerCallbacks
The IArticyFlowPlayerCallbacks type exposes the following members.
Name | Description | |
---|---|---|
OnBranchesUpdated |
Called when the traversal found multiple branches and/or when the execution paused because of a PausedOn, or it found a dead end.
| |
OnFlowPlayerPaused |
Called when the traversal has found a valid stop target, or when the execution has reached a dead end.
|
Implement this interface on your game object, that hosts an ArticyFlowPlayer to be notified about its traversal events.
Both methods are always called one after another, in always the same order OnFlowPlayerPaused(IFlowObject) first and OnBranchesUpdated(IListBranch) second.
Common use cases for OnFlowPlayerPaused(IFlowObject) are to show the paused node to the UI in a Dialogue for example or parse its Data/Template and simply continue using one of the Play methods, without displaying it.
Common use case for OnBranchesUpdated(IListBranch) is to build a list of branching options; create UI controls for each branch and display them on the UI.