Example #1
0
        private CEditorApp()
        {
            m_lastUpdateTime = EditorApplication.timeSinceStartup;

            CTimerManager.ScheduleTimer(() =>
            {
                CThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread
                CLog.Initialize();               // it's safe to initialize logging

                CEditorSceneKeyHandler.keyDownHandler += SceneKeyDownHandler;
                CEditorSceneKeyHandler.keyUpHandler   += SceneUpDownHandler;
            });
        }
 internal void Add(CConsoleViewCellEntry entry)
 {
     if (CThreadUtils.IsUnityThread())
     {
         Entries.Add(entry);
         Delegate.OnConsoleEntryAdded(this, ref entry);
     }
     else
     {
         CTimerManager.ScheduleTimer(() =>
         {
             Add(entry);
         });
     }
 }
Example #3
0
 static TestFixtureBase()
 {
     CThreadUtils.SetMainThread();
 }