using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Threading.Tasks; using UnityEngine.SceneManagement; public class Status : MonoBehaviour { private Button button; private Text type;//房间状态文本 private GameObject three;//自己参与时出现的文字图像 private GameObject down; public bool isParticipate;//是否参与 public bool isEnd=false;//是否结束 public bool isOngoing = false;//是否在进行 public bool isScheduled=false;//是否预定 private Image pop; private Image arrow; private float time = 3f; private float await = 0; private Button Assessmentreport;//评估报告按钮 private Button Review;//复盘按钮; private Button repair;//修复按钮 private Button cancelbooking;//取消预定按钮 private bool eventAdded = false; // 防止重复添加事件 private bool isadministrator;//是否为管理员 public Drill drill; private string scenename;//场景名 private string accidenttype;//事故类型 private Text text;//场景名加事故类型的文本 private Text timetext;//房间时间文本 private gameRoomList gameRoomListInstance; // 引用 gameRoomList 脚本实例 private List roomDataList; // 保存获取到的房间列表 public string RoomId; public string status; public string TemplateId; public string SceneId; public string SubjectId; // Start is called before the first frame update void Start() { button=GetComponent