Exemple #1
0
 private void _init(IcSkillGroup group)
 {
     foreach (var node in nodes)
     {
         if (node is IIcSkillSystemNode skillNode)
         {
             skillNode.SkillGroup = group;
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// 获取子图,返回Node
        /// </summary>
        /// <returns></returns>
        public Node GetChildGroupNode(IcSkillGroup parent)
        {
            _init(parent);
//            RootNode = parent.RootNode;

            Node main = null;

            foreach (var node in nodes)
            {
                if (node.GetType() == typeof(ChildGroupNode))
                {
                    main = (Node)node.GetValue(null);
                    break;
                }
            }

            return(main);
        }
Exemple #3
0
        /// <summary>
        /// 获取子图,返回Node
        /// </summary>
        /// <returns></returns>
        public Node GetChildGroupNode(IcSkillGroup parent)
        {
            _init(parent);

            RootNode = parent.RootNode;

            Node main = null;

            foreach (var node in nodes)
            {
                if (node is ChildGroupNode childGroupNode)
                {
                    main = childGroupNode.GetDefaultOutputValue();
                    break;
                }
            }

            return(main);
        }