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().color.a==0) { GameManagerForZhuanWan.Instance.KuangIndex++; this.gameObject.GetComponent().color = Color.green; this.transform.GetChild(0).gameObject.SetActive(true); Debug.Log("点击"); if (GameManagerForZhuanWan.Instance.KuangIndex == 6) { OKBtn.gameObject.SetActive(true); } } } }