25 lines
666 B
C#
25 lines
666 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
public class HistoryItem : MonoBehaviour
|
|
{
|
|
|
|
public int roomNo;//对应房间编号
|
|
public int KillTimes;//被杀次数
|
|
public string gameNo;//游戏期号
|
|
public TextMeshProUGUI TextPro;//次数文本
|
|
public TextMeshProUGUI nameTextPro;//名字文本
|
|
public Image image;//背景图片
|
|
public Sprite sprite;//图片精灵
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
TextPro=transform.Find("TimesText").GetComponent<TextMeshProUGUI>();
|
|
image = transform.Find("Image").GetComponent<Image>();
|
|
}
|
|
|
|
|
|
}
|