Fixed Variable substitution in Menu command #263
@ -47,7 +47,10 @@ namespace Fungus
if (menuDialog != null)
{
menuDialog.gameObject.SetActive(true);
string displayText = text;
Flowchart flowchart = GetFlowchart();
string displayText = flowchart.SubstituteVariables(text);
menuDialog.AddOption(displayText, interactable, targetBlock);
}
@ -144,7 +144,7 @@ namespace Fungus
// Ignore input events if a Menu is being displayed
if (MenuDialog.activeMenuDialog != null)
if (MenuDialog.activeMenuDialog.gameObject.activeSelf)
if (MenuDialog.activeMenuDialog.gameObject.activeInHierarchy)
dialogClickedFlag = false;
nextLineInputFlag = false;