using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIManager : MonoBehaviour { // Start is called before the first frame update public GameObject[] tanchuang; public static UIManager instance; public MouseDown[] mouseDowns; public int num; public PanDuan panDuan; private void Awake() { instance = this; } public void test() { num = 0; for (int i = 0; i < mouseDowns.Length; i++) { if (mouseDowns[i].actived) { num++; } } if (num >= 3) { panDuan.SetOne(true); Debug.LogError("提交"); } } }