diff --git a/Project/Assets/LunarPlugin/Editor/Console/CAbstractConsole.cs b/Project/Assets/LunarPlugin/Editor/Console/CAbstractConsole.cs old mode 100755 new mode 100644 index ac128a5..5a11dca --- a/Project/Assets/LunarPlugin/Editor/Console/CAbstractConsole.cs +++ b/Project/Assets/LunarPlugin/Editor/Console/CAbstractConsole.cs @@ -47,7 +47,7 @@ public AbstractConsole(int historySize) internal void Add(ConsoleViewCellEntry entry) { - if (ThreadUtils.IsUnityThread()) + if (CThreadUtils.IsUnityThread()) { Entries.Add(entry); Delegate.OnConsoleEntryAdded(this, ref entry); diff --git a/Project/Assets/LunarPlugin/Editor/Core/CEditorApp.cs b/Project/Assets/LunarPlugin/Editor/Core/CEditorApp.cs index 3f03d7e..b145b5f 100644 --- a/Project/Assets/LunarPlugin/Editor/Core/CEditorApp.cs +++ b/Project/Assets/LunarPlugin/Editor/Core/CEditorApp.cs @@ -55,7 +55,7 @@ private EditorApp() TimerManager.ScheduleTimer(() => { - ThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread + CThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread Log.Initialize(); // it's safe to initialize logging EditorSceneKeyHandler.keyDownHandler += SceneKeyDownHandler; diff --git a/Project/Assets/LunarPlugin/Scripts/Core/CThreadUtils.cs b/Project/Assets/LunarPlugin/Scripts/Core/CThreadUtils.cs index 4aca2d5..fc40db3 100644 --- a/Project/Assets/LunarPlugin/Scripts/Core/CThreadUtils.cs +++ b/Project/Assets/LunarPlugin/Scripts/Core/CThreadUtils.cs @@ -27,7 +27,7 @@ namespace LunarPluginInternal { - static class ThreadUtils + static class CThreadUtils { private static readonly object s_mutex = new object(); private static Thread s_mainThread; diff --git a/Test/Test/TestFixtureBase.cs b/Test/Test/TestFixtureBase.cs old mode 100755 new mode 100644 index 558a55c..0604999 --- a/Test/Test/TestFixtureBase.cs +++ b/Test/Test/TestFixtureBase.cs @@ -19,7 +19,7 @@ public abstract class TestFixtureBase static TestFixtureBase() { - ThreadUtils.SetMainThread(); + CThreadUtils.SetMainThread(); } protected virtual void RunSetUp()