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);
    }