37 lines
690 B
C#
37 lines
690 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ClassMate : MonoBehaviour
|
|
{
|
|
public JueseChoicePop jueseChoicePop;
|
|
public Text classmatename;
|
|
|
|
public Button otherButton;
|
|
public Button button;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
button.onClick.AddListener(Click);
|
|
}
|
|
|
|
public void Click()
|
|
{
|
|
jueseChoicePop.SetClassMate(this);
|
|
//classmatename.text +=
|
|
}
|
|
|
|
public void SetJc(JueseChoicePop jc)
|
|
{
|
|
jueseChoicePop = jc;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|