Exemplo n.º 1
0
        public void ShowNestedConditionsGUI()
        {
            if (conditions.Count == 1)
            {
                currentViewCondition = conditions[0];
            }

            if (currentViewCondition != null)
            {
                EditorUtils.Separator();
                Task.ShowTaskInspectorGUI(currentViewCondition, (c) =>
                {
                    if (c == null)
                    {
                        var i = conditions.IndexOf(currentViewCondition);
                        conditions.RemoveAt(i);
                    }
                    currentViewCondition = (ConditionTask)c;
                });
            }
        }
Exemplo n.º 2
0
        public void ShowNestedActionsGUI()
        {
            if (actions.Count == 1)
            {
                currentViewAction = actions[0];
            }

            if (currentViewAction != null)
            {
                EditorUtils.Separator();
                Task.ShowTaskInspectorGUI(currentViewAction, (a) =>
                {
                    if (a == null)
                    {
                        var i = actions.IndexOf(currentViewAction);
                        actions.RemoveAt(i);
                    }
                    currentViewAction = (ActionTask)a;
                });
            }
        }