using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using UnityEngine.UI; public class LightingControl : MonoBehaviour { public string num; string str = "unity调用JS"; // 声明导入的JavaScript函数 [DllImport("Internal")] private static extern void OpenWebPanel(string str); // Start is called before the first frame update void Start() { GetComponent