diff --git a/Assets/BetterCommons b/Assets/BetterCommons index 2a0f166..f2721d8 160000 --- a/Assets/BetterCommons +++ b/Assets/BetterCommons @@ -1 +1 @@ -Subproject commit 2a0f166d3b259f098e5bc658800190b8258603bc +Subproject commit f2721d8c2b7c76e75d1dfb849b383b12737bd2ee diff --git a/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs b/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs index 23ad5ee..3db8ae5 100644 --- a/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs +++ b/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs @@ -14,8 +14,10 @@ public static class LogBuilder private const int JumpCount = 4; private const string Null = "null"; - + +#if UNITY_EDITOR [InitializeOnLoadMethod] +#endif [RuntimeInitializeOnLoadMethod] private static void Initialize() { diff --git a/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs b/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs index cb3bab4..f207398 100644 --- a/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs +++ b/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs @@ -11,8 +11,10 @@ static LogHandlerInjector() { _logHandler = new LogHandler(); } - + +#if UNITY_EDITOR [InitializeOnLoadMethod] +#endif [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] public static void OnInitialize() { diff --git a/Assets/BetterLogger/package.json b/Assets/BetterLogger/package.json index a0e60f7..4aec0dc 100644 --- a/Assets/BetterLogger/package.json +++ b/Assets/BetterLogger/package.json @@ -1,7 +1,7 @@ { "name": "com.tdw.better.logger", "displayName": "Better Logger", - "version": "0.1.3", + "version": "0.1.4", "unity": "2021.3", "description": " ", "dependencies": {