public override void OnEnter() { if (hideOnSelected && targetSequence.GetExecutionCount() > 0) { Continue(); return; } Choose.Option option = new Choose.Option(); option.optionText = optionText; option.targetSequence = targetSequence; Choose.options.Add(option); Continue(); }
public override void OnEnter() { CheckEventSystem(); MenuDialog menuDialog = SetMenuDialog.GetActiveMenuDialog(); if (menuDialog != null) { menuDialog.gameObject.SetActive(true); if (hideIfVisited && targetSequence != null && targetSequence.GetExecutionCount() > 0) { // Don't show this option } else { menuDialog.AddOption(text, targetSequence); } } Continue(); }