This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class WebConnectSample : MonoBehaviour
{
public Text recTxt;
private void Awake()
//注册接收方法
EduCoderTool.WebConnecter.Singleton.dataHandle += ReceiveWebMsg;
}
//接收从平台发送过来的数据
void ReceiveWebMsg(string data)
Debug.Log("ReceiveWebMsg:" + data);
recTxt.text = data;
//提交成绩,一共有3个方法,这里展示了常用的提交分数的方法
public void ButtonClick()
EduCoderTool.WebConnecter.Singleton.SendResultToWeb(true, 90);