BlockingCommandHandler Delegate
Represents a method that can be called when the DialogueRunner encounters a command.
public delegate void BlockingCommandHandler(string[] parameters, Action onComplete);
Remarks
After this method returns, the DialogueRunner will pause
executing code. The onComplete
delegate will cause the
DialogueRunner to resume executing code.
Parameters
Parameter | Description |
---|---|
string[] parameters |
The list of parameters that this command was invoked with. |
Action onComplete |
The method to call when the DialogueRunner should continue executing code. |
See Also
-
AddCommandHandler(String, DialogueRunner.CommandHandler)
: Adds a command handler. Dialogue will continue running after the command is called. -
AddCommandHandler(String, DialogueRunner.BlockingCommandHandler)
: Adds a command handler. Dialogue will pause execution after the command is called.
Source
Defined in Unity/Assets/YarnSpinner/Scripts/DialogueRunner.cs, line 478.