public void OnClickOpen()
 {
     m_SelectPanel.SelectPlane((ID) =>
     {
         Clear();
         m_Root = m_TreeParser.CreateBehaviourTree(ID, m_NodeTempalte, ComponentTool.FindChild("TreeRoot", null), LoadAIConfig());
         m_Root.Render(0);
     });
 }
    public override void OnOpen(object param)
    {
        base.OnOpen(param);
        if (!(param is AIAgent))
        {
            return;
        }

        ClearWindow();

        m_AIAgent = param as AIAgent;
        var m_TreeParser = new AIDebugerTreeParser();
        m_TreeRoot = m_TreeParser.CreateBehaviourTree(m_AIAgent.GetID(), m_NodeTemplate, m_TreeRootObj, ConfigManager.Instance.GetAIConfigTable());
        InitTree(); 

        m_TreeRoot.Render(0);
        m_AIAgent.SetDebugMode(true);
        UITickTask.Instance.RegisterToUpdateList(Update);
    }
    public override void OnOpen(object param)
    {
        base.OnOpen(param);
        if (!(param is AIAgent))
        {
            return;
        }

        ClearWindow();

        m_AIAgent = param as AIAgent;
        var m_TreeParser = new AIDebugerTreeParser();

        m_TreeRoot = m_TreeParser.CreateBehaviourTree(m_AIAgent.GetID(), m_NodeTemplate, m_TreeRootObj, ConfigManager.Instance.GetAIConfigTable());
        InitTree();

        m_TreeRoot.Render(0);
        m_AIAgent.SetDebugMode(true);
        UITickTask.Instance.RegisterToUpdateList(Update);
    }