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

37 lines
690 B
C#
Raw Normal View History

2024-12-01 19:24:07 +08:00
using System;
2024-11-30 17:43:21 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ClassMate : MonoBehaviour
{
2024-12-01 19:24:07 +08:00
public JueseChoicePop jueseChoicePop;
2024-11-30 17:43:21 +08:00
public Text classmatename;
2024-12-01 19:24:07 +08:00
public Button otherButton;
public Button button;
2024-11-30 17:43:21 +08:00
// Start is called before the first frame update
void Start()
{
2024-12-01 19:24:07 +08:00
button.onClick.AddListener(Click);
}
public void Click()
{
jueseChoicePop.SetClassMate(this);
//classmatename.text +=
}
public void SetJc(JueseChoicePop jc)
{
jueseChoicePop = jc;
2024-11-30 17:43:21 +08:00
}
// Update is called once per frame
void Update()
{
}
}