You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
877 B
32 lines
877 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class EventItem : MonoBehaviour {
|
||
|
public Text time;
|
||
|
public Text person;
|
||
|
public Text eve;
|
||
|
public Text detail;
|
||
|
public void Set(ReportErroeSyncData info)
|
||
|
{
|
||
|
time = transform.Find("TimeText").GetComponent<Text>();
|
||
|
time.text = TIME_SYNC.time;
|
||
|
person = transform.Find("PresonText").GetComponent<Text>();
|
||
|
person.text = CurrentUserInfo.room.FindUserById(info.SendUserID).UserInfo.RealName;
|
||
|
eve = transform.Find("EventText").GetComponent<Text>();
|
||
|
eve.text = info.errorset;
|
||
|
detail = transform.Find("DetailText").GetComponent<Text>();
|
||
|
detail.text = info.describe;
|
||
|
}
|
||
|
// Use this for initialization
|
||
|
void Start () {
|
||
|
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update () {
|
||
|
|
||
|
}
|
||
|
}
|