using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Threading.Tasks; public class Alertwindow : MonoBehaviour { private Button sure; private Button cancel; private bool isback=false; public GameObject player; // 模拟的玩家对象 public Canvas preDrillPanel; // 演练未开始时的界面布局 // 用于“强制下线”延时 public float forceOfflineDelay = 3f; // Start is called before the first frame update void Start() { sure=transform.Find("bg/downbg/GameObject3/Sure").GetComponent