private void OnEnable() { Viewer = this; ViewerSetting = new LogNetSetting() { GlobalSetting = new LogNetGlobalSetting(), LoggerSettings = new List <LogNetLoggerSetting>(), }; m_ViewerData = new LogViewerData(); m_ViewerData.OnLogDataChanged = OnLogDataChanged; EditorApplication.update += OnUpdate; if (Application.isPlaying) { ConnectServer(); } }
private void OnDestroy() { Viewer = null; }