From c5ffb0a44e82add75ee6be6ef6e8fa7b77cdd999 Mon Sep 17 00:00:00 2001 From: MCpiroman Date: Thu, 19 Sep 2019 21:27:12 +0200 Subject: [PATCH] Fix local debug changes --- scripts/LowLevelPluginManager.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/scripts/LowLevelPluginManager.cs b/scripts/LowLevelPluginManager.cs index c436442..33c10b6 100644 --- a/scripts/LowLevelPluginManager.cs +++ b/scripts/LowLevelPluginManager.cs @@ -23,12 +23,10 @@ public static void Initialize() if (_unityInterfacePtr == IntPtr.Zero) throw new Exception($"{nameof(GetUnityInterfacesPtr)} returned null"); } - catch(DllNotFoundException ex) + catch(DllNotFoundException) { - Debug.Log(ex); + Debug.LogWarning("Stub native plugin not found. Low level native callback won't fire. If you didn't install this tool via Unity package, you'll need to build it manually "); } - - Debug.Log("Initialize()"); } public static void OnDllLoaded(NativeDll dll) @@ -44,10 +42,7 @@ public static void OnDllLoaded(NativeDll dll) DllManipulator.LoadTargetFunction(unityPluginLoadFunc, true); if (unityPluginLoadFunc.@delegate != null) - { ((UnityPluginLoadDel)unityPluginLoadFunc.@delegate)(_unityInterfacePtr); - Debug.Log("Called UnityPluginLoad"); - } } public static void OnBeforeDllUnload(NativeDll dll) @@ -58,9 +53,7 @@ public static void OnBeforeDllUnload(NativeDll dll) DllManipulator.LoadTargetFunction(unityPluginUnloadFunc, true); if (unityPluginUnloadFunc.@delegate != null) - { - Debug.Log("Called UnityPluginUnload"); - } + ((UnityPluginUnloadDel)unityPluginUnloadFunc.@delegate)(); } delegate void UnityPluginLoadDel(IntPtr unityInterfaces);