コード例 #1
0
        private void SelectPanelToDebug(PanelChoice pc)
        {
            // Detach debugger from current panel
            if (m_SelectedPanel != null)
            {
                m_SelectedPanel.panel.panelDebug.DetachDebugger(this);
            }

            string menuText = "";

            if (pc != null && ValidateDebuggerConnection(pc.panel))
            {
                pc.panel.panelDebug.AttachDebugger(this);

                m_SelectedPanel      = pc;
                m_LastVisualTreeName = pc.name;

                OnSelectPanelDebug(panelDebug);
                menuText = pc.name;
            }
            else
            {
                // No tree selected
                m_SelectedPanel      = null;
                m_LastVisualTreeName = null;

                OnSelectPanelDebug(null);
                menuText = "Select a panel";
            }

            m_PanelSelect.text = menuText;
        }
コード例 #2
0
        public void Disconnect()
        {
            var lastTreeName = m_LastVisualTreeName;

            m_SelectedPanel = null;
            SelectPanelToDebug((PanelChoice)null);

            m_LastVisualTreeName = lastTreeName;
        }