using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DownLoadTest : MonoBehaviour
{
public Button downLoadBtn;
string data = "";
void Start()
{
downLoadBtn = this.GetComponent<Button>();
downLoadBtn.onClick.AddListener(()=> BtnClick());
}
private void BtnClick()
{
//调用打包后index文件里的TestSend方法
Application.ExternalCall("TestSend", data);
}
}