14 lines
289 B
C#
Raw Permalink Normal View History

2025-03-11 16:24:25 +08:00
using System.Runtime.InteropServices;
using UnityEngine;
public class UnityToWeb
{
[DllImport("__Internal")]
private static extern void OpenNewWindow(string str);
public static void ToJSSendMsgByMQTT(string content)
{
OpenNewWindow(content);
}
}