public override void OnEnter() { var thisCanvas = StorySystem.StoryDataUtilities.StoryMainCanvas.transform; menuDialog = thisCanvas.Find(menuDialogName).GetComponent <MenuDialogExtend>(); if (menuDialog != null) { MenuDialogExtend.ActiveMenuDialog = menuDialog; menuDialog.ClickCount = clickCount; } Continue(); }
public override void OnEnter() { bool hideOption = (hideIfVisited && targetBlock != null && targetBlock.GetExecutionCount() > 0) || hideThisOption.Value; // Default Menu dialog is AdvManager's MenuDialogExtend menuDialog = AdvManager.Instance.advMenuDialog; if (menuDialog != null) { menuDialog.SetActive(true); var flowchartExt = GetComponent <FlowchartExtend>(); //TODO: use better method string textTerm = $"{flowchartExt.GoogleSheetID}.{flowchartExt.GooglePageID}.{CSVCommandKey}"; menuDialog.AddOption(textTerm, interactable, hideOption, targetBlock, flowchartExt, HasCondition, RequireValue); } Continue(); }