Beispiel #1
0
        public void AddNode(RedPointNode node)
        {
            if (m_ChildNode == null)
            {
                m_ChildNode = new List <RedPointNode>();
            }

            node.parent = this;
            m_ChildNode.Add(node);
        }
Beispiel #2
0
        public RedPointNode GetRedPointNode(string key)
        {
            RedPointNode node = null;

            if (m_ChildMap.TryGetValue(key, out node))
            {
                return(node);
            }

            Log.e("Not Find RedPoint:" + key);
            return(null);
        }
Beispiel #3
0
        public void AddChild(RedPointNode node)
        {
            if (!m_ChildMap.ContainsKey(node.m_NodeName))
            {
                m_ChildMap.Add(node.m_NodeName, node);
                node.parent = this;
            }
            else
            {
                Log.w("Already add child:" + node.m_NodeName);
            }

            Refesh();
        }
Beispiel #4
0
 public void Init()
 {
     m_RootNode = new RedPointNode();
 }
Beispiel #5
0
 public void AddRedPointNode(RedPointNode node)
 {
     m_RootNode.AddChild(node);
     m_RedPointMap.Add(node.Name, node);
 }
Beispiel #6
0
 public override void OnSingletonInit()
 {
     m_RootNode = new RedPointNode("Root");
 }