39 lines
1005 B
C#
39 lines
1005 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class UI_TeacherAnswer : BaseItem
|
|
{
|
|
public TextMeshProUGUI TeacherText; //教师名
|
|
public TextMeshProUGUI StudentNametext; //学生名
|
|
public TextMeshProUGUI AnswerCommentText; //内容
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
OnInit();
|
|
}
|
|
private void OnInit()
|
|
{
|
|
TeacherText = GetControl<TextMeshProUGUI>("教师名");
|
|
StudentNametext = GetControl<TextMeshProUGUI>("学生名");
|
|
AnswerCommentText = GetControl<TextMeshProUGUI>("回复内容");
|
|
}
|
|
public void Init(string TeacherNameDate, string StudentNameDate, string AnswerCommentDate)
|
|
{
|
|
TeacherText.text = TeacherNameDate;
|
|
StudentNametext.text = StudentNameDate;
|
|
AnswerCommentText.text = AnswerCommentDate;
|
|
}
|
|
public override void ShowMe()
|
|
{
|
|
base.ShowMe();
|
|
}
|
|
|
|
public override void HideMe()
|
|
{
|
|
base.HideMe();
|
|
}
|
|
}
|