diff --git a/Assets/Fungus/Scripts/GameController.cs b/Assets/Fungus/Scripts/GameController.cs index 8edf6199..19bfcd2c 100644 --- a/Assets/Fungus/Scripts/GameController.cs +++ b/Assets/Fungus/Scripts/GameController.cs @@ -178,6 +178,18 @@ namespace Fungus commandQueue.AddCommand(new Command.AddOptionCommand(optionText, optionAction)); } + /** + * Adds an option with no action to the current list of player options. + * This method returns immediately but it queues an asynchronous command for later execution. + * @param optionText The text to be displayed for this option + * @param optionAction The Action delegate method to be called when the player selects the option + */ + public void AddOption(string optionText) + { + CommandQueue commandQueue = Game.GetInstance().commandQueue; + commandQueue.AddCommand(new Command.AddOptionCommand(optionText, delegate {})); + } + /** * Display all previously added options as buttons, with no text prompt. * This method returns immediately but it queues an asynchronous command for later execution.