using System.Collections; using System.Collections.Generic; using System.Security.Cryptography; using UnityEngine; using UnityEngine.UI; //管理角色信息的类 [System.Serializable] public class RoleInfo { public string roleName; // 角色名称 public string jobTitle; // 职业名称 public string trainingDate; // 演练日期 public string scenarioName; // 场景名称 public string status; // 演练状态 public int operationErrors; // 操作错误次数 public int injuries; // 受伤次数 public bool extinguishFire; // 补灭明火状态 public bool evacuationStatus; // 安全疏散状态 } public class PlayBack : MonoBehaviour { private Button backBtn;//回放按钮 private GameObject playback6; private GameObject playback5; //private Button recordbtn; private GameObject Record;//录音的界面 private GameObject right1; private GameObject right2; private bool isrecord = false;//是否在录音界面 private GameObject mid; public bool ishost;//是否为主持人 private bool lastHostState; // 保存上一次的 ishost 状态,便于检测变化 // 左侧按钮和页面 public Transform leftContainer; // 左侧按钮的父物体 public Transform pagesContainer; // 页面容器的父物体 public GameObject buttonPrefab; // 按钮预制体 public GameObject pagePrefab; // 页面预制体 public Sprite selectedSprite; // 按钮选中时的背景 public Sprite defaultSprite; // 按钮默认状态的背景 private List