_xiaofang/xiaofang/Assets/yhj/scripts/ClassItem.cs

50 lines
1.4 KiB
C#
Raw Normal View History

2024-11-30 17:43:21 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ClassItem : MonoBehaviour
{
public Text classname;
public Button NoSelectedBtn;
public Button SelectedBtn;
public Text SelectedBtntext;
2024-12-01 19:24:07 +08:00
public Text NoSelectedBtntext;
2024-11-30 17:43:21 +08:00
public GameObject JuesechoicePop;
2024-12-01 19:24:07 +08:00
public bool isSet = false;
2024-11-30 17:43:21 +08:00
// Start is called before the first frame update
2024-12-10 18:14:08 +08:00
//void Start()
//{
// NoSelectedBtn.onClick.AddListener(OpenJueseChoicePop);
// setClassItem("");
//}
//public void setClassItem(string s)
//{
// if(!isSet)
// {
// NoSelectedBtn.gameObject.SetActive(true);
// SelectedBtn.gameObject.SetActive(false);
// }
// else
// {
// //NoSelectedBtn.gameObject.SetActive(true);
// //SelectedBtn.gameObject.SetActive(false);
2024-12-01 19:24:07 +08:00
2024-12-10 18:14:08 +08:00
// SelectedBtn.gameObject.SetActive(true);
// SelectedBtntext.text = s;
// NoSelectedBtn.gameObject.SetActive(false);
// }
//}
//void OpenJueseChoicePop()
//{
// JuesechoicePop.SetActive(true);
// JueseChoicePop jueseChoicePop = JuesechoicePop.GetComponent<JueseChoicePop>();
// jueseChoicePop.SetClassItem(this);
//}
//// Update is called once per frame
//void Update()
//{
2024-11-30 17:43:21 +08:00
2024-12-10 18:14:08 +08:00
//}
2024-11-30 17:43:21 +08:00
}