DialogueUIBehaviour.RunOptions Method
Called by the DialogueRunner
to signal that a set of options should be displayed to the user.
public abstract void RunOptions(OptionSet optionSet, ILineLocalisationProvider localisationProvider, Action<int> onOptionSelected)
Remarks
When this method is called, the DialogueRunner
will pause execution until the onOptionSelected
method is
called.
Parameters
Parameter | Description |
---|---|
OptionSet optionSet |
The set of options that should be displayed to the user. |
ILineLocalisationProvider localisationProvider |
The object that should be used to get the localised text of each of the options. |
Int32} onOptionSelected |
A method that should be called when the user has made a selection. |
Source
Defined in Unity/Assets/YarnSpinner/Scripts/DialogueRunner.cs, line 1118.