using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Threading.Tasks; using UnityEngine.SceneManagement; using Unity.VisualScripting; public class Starthost : MonoBehaviour { private GameObject panel; private Button posiBtn;//人员到位情况按钮 private Button start;//开始演练按钮 public bool isReady;//在线玩家是否准备 public bool isSatisfy;//人员是否满足 public bool isStart;//演习是否开始 private GameObject time;//计时 private Text timeText;//计时时间 private bool isTimerRunning=false;//是否开始计时 private float timer = 0f; public float moveDuration = 2f; // 移动时间 public float scaleDuration = 2f; // 缩放时间 private RectTransform rectTransform; private Canvas canvas; private Panel2 GetPanel2; public Alertwindow alertwindow; private bool isButtonClicked = false; // 监听的变量 private GameObject peopleposition;//人员的位置信息 //非主持人的画面 public bool ishost=false; private Button ready; private Image image; void Start() { panel = transform.Find("Panel1").gameObject; posiBtn = transform.Find("Panel1/right/under/btnRenYuanDaoWei").GetComponent