fix:1、添加sdk。2、添加h5

This commit is contained in:
2026-06-25 15:48:45 +08:00
parent c05a65cdc3
commit 86518aae41
1212 changed files with 71385 additions and 194 deletions
+22
View File
@@ -0,0 +1,22 @@
using System.Runtime.InteropServices;
using UnityEngine;
public class OpenBrowser
{
[DllImport("__Internal")]
public static extern void _openURL(string url);
public static void OpenURL(string url)
{
// 调用iOS原生方法打开URL
if (Application.platform == RuntimePlatform.IPhonePlayer)
{
_openURL(url);
}
else
{
// 在非iOS平台上,你可以使用Unity的Application.OpenURL方法
Application.OpenURL(url);
}
}
}