예제 #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;
            });
        }
예제 #2
0
 internal void Add(CConsoleViewCellEntry entry)
 {
     if (CThreadUtils.IsUnityThread())
     {
         Entries.Add(entry);
         Delegate.OnConsoleEntryAdded(this, ref entry);
     }
     else
     {
         CTimerManager.ScheduleTimer(() =>
         {
             Add(entry);
         });
     }
 }
예제 #3
0
 static TestFixtureBase()
 {
     CThreadUtils.SetMainThread();
 }