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 float forceOfflineDelay = 3f; private GameObject peopleposition; private List nameImage; // 存储所有角色标签的子物体 // Start is called before the first frame update void Start() { sure=transform.Find("bg/downbg/GameObject3/Sure").GetComponent