You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
728 B

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("提交");
}
}
}