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.

29 lines
720 B

using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class BiaoShiKuang : MonoBehaviour, IPointerDownHandler
{
public Button OKBtn;
public void OnPointerDown(PointerEventData eventData)
{
if (this.gameObject.GetComponent<Image>().color.a==0)
{
GameManagerForZhuanWan.Instance.KuangIndex++;
this.gameObject.GetComponent<Image>().color = Color.green;
this.transform.GetChild(0).gameObject.SetActive(true);
Debug.Log("点击");
if (GameManagerForZhuanWan.Instance.KuangIndex == 6)
{
OKBtn.gameObject.SetActive(true);
}
}
}
}