You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
729 B

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>().text = "还有异常未检测,请继续检测";
}
}
}