using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Escalation : MonoBehaviour { public GameObject errtip; public Text success; [TextArea] public string successText= "预警成功,恭喜通关"; public void EscalationBtn() { if (LevelBase.Instance.abnormalCount == transform.childCount - 1) { success.text = successText; TaskBase.Instacne.FinishTask(7); EduCoderTool.WebConnecter.Singleton.SendResultToWeb(true); } else { errtip.SetActive(true); errtip.GetComponentInChildren().text = "还有异常未检测,请继续检测"; } } }