Browse Source

Fix Unity on OSX unable to load the plugin due to name change

Matt Coburn 6 năm trước cách đây
mục cha
commit
9034fe0d17
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/Managed/ENet.cs

+ 1 - 1
Source/Managed/ENet.cs

@@ -1002,7 +1002,7 @@ namespace ENet
 #if __IOS__ || UNITY_IOS && !UNITY_EDITOR
         // iOS
 		private const string nativeLibrary = "__Internal";
-#elif __APPLE__ || UNITY_STANDALONE_OSX && !UNITY_EDITOR
+#elif __APPLE__ || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
         // MacOS
         // Custom ENet Repo builds as libenet.bundle; make sure it's the same.
         private const string nativeLibrary = "libenet";