public EntityManager(ComponentsFactory componentsFactory) { m_ComponentsFactory = componentsFactory; m_EntityRoot = new GameObject("EntityRoot").transform; DebugPanelInstance.GetInstance().RegistGUI(TabName.Entity, DoGUI, true); }
protected void OnDisable() { EditorApplication.playModeStateChanged -= OnPlayModeStateChanged; for (int iTab = 0; iTab < m_Tabs.Count; iTab++) { m_Tabs[iTab].Release(); } m_Tabs = null; // 当Debug窗口被关闭时,就把默认的Debug窗口改成假的Debug窗口 if (DebugPanelInstance._ms_Instance.Equals(this)) { DebugPanelInstance._SetInstanceToDummy(); } }
protected void OnEnable() { m_EditStyle = new PrefsValue <bool>("EditorDebugPanel m_EditStyle"); m_Tabs = new List <Tab>(); RegistGUI("Debug Panel", DoGUI_DebugPanel, false); EditorApplication.playModeStateChanged += OnPlayModeStateChanged; if (DebugPanelInstance._ms_Instance == null || !DebugPanelInstance._ms_Instance.Equals(this)) { DebugPanelInstance._ms_Instance = this; DebugPanelInstance.RegistStartupTabs(); } }
private void OnInitialized() { DebugUtility.Log(LOG_TAG, "Begin invoke camera manager initialized callback"); try { m_InitializeAsyncOperation.Complete?.Invoke(); DebugUtility.Log(LOG_TAG, "Invoke camera manager initialized callback success"); } catch (Exception e) { DebugUtility.LogError(LOG_TAG, string.Format("Invoke camera manager initiazlied callback failed, Exception:\n{0}", e.ToString())); } finally { m_InitializeAsyncOperation = null; } DebugPanelInstance.GetInstance().RegistGUI(TabName.Camera, DoGUI, true); DebugUtility.Log(LOG_TAG, "Initialized CameraManager"); }