提交
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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
|
||||
|
||||
Application.OpenURL(url);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user