[HelpText("Adds an option button to be displayed by the next Say command. The target sequence is run when the player selects the option. A condition can be specified for when the option should be shown.")]
@ -7,12 +7,12 @@ using System.Collections.Generic;
namespaceFungus.Script
{
[CustomEditor (typeof(Option))]
[CustomEditor (typeof(AddOption))]
publicclassOptionEditor:FungusCommandEditor
{
publicoverridevoidDrawCommandGUI()
{
Optiont=targetasOption;
AddOptiont=targetasAddOption;
EditorGUI.BeginChangeCheck();
@ -21,12 +21,12 @@ namespace Fungus.Script
newGUIContent("<Continue>"),
t.GetFungusScript(),
t.targetSequence);
Option.ShowConditionshowCondition=(Option.ShowCondition)EditorGUILayout.EnumPopup(newGUIContent("Show Condition","Condition when this option should be visible."),t.showCondition);
AddOption.ShowConditionshowCondition=(AddOption.ShowCondition)EditorGUILayout.EnumPopup(newGUIContent("Show Condition","Condition when this option should be visible."),t.showCondition);