using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using static UnityEngine.GraphicsBuffer; public class Panel3 : MonoBehaviour { private Button cancel; private Button online;//目前在线离线状况弹窗按钮 private Button follow;//跟随查按钮 private Dropdown dropdown; private int optionCount; // 用于存储传入的确定Dropdown选项数量的参数 private GameObject peopleposition; private Camera godView; public List playertarget; // 存储每个角色 private int currentCameraIndex = -1; private bool isGodView = false; // 是否当前为上帝视角 private GameObject[] players; private Vector3 startposition = new Vector3(6, 60, -25); private Vector3 startrotation = new Vector3(90, 0, -90); // Start is called before the first frame update void Start() { cancel=transform.Find("left/btn_enddrill").GetComponent