示例#1
0
        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();
        }
示例#2
0
文件: Menu.cs 项目: Banbury/fungus
        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();
        }