Exemple #1
0
        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();
            }
        }
Exemple #2
0
 private void OnDestroy()
 {
     Viewer = null;
 }