30 lines
722 B
C#
Raw Normal View History

2025-04-18 19:18:15 +08:00
using System.Collections;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
2025-05-09 00:35:25 +08:00
using TMPro;
2025-04-18 19:18:15 +08:00
namespace GameLogic
{
public class UIJiaRuItem : MonoBehaviour
{
2025-05-09 00:35:25 +08:00
public TextMeshProUGUI m_PlayerName;
public TextMeshProUGUI m_Info;
2025-04-18 19:18:15 +08:00
void Awake()
{
2025-05-09 00:35:25 +08:00
m_PlayerName = transform.Find("Name").GetComponent<TextMeshProUGUI>();
m_Info = transform.Find("Info").GetComponent<TextMeshProUGUI>();
2025-04-18 19:18:15 +08:00
}
2025-05-09 00:35:25 +08:00
public void OnInit(UnitPlayerData unitPlayerData)
{
m_PlayerName.text = unitPlayerData.protCustMessageData.nickName;
m_Info.text = "李";
2025-04-18 19:18:15 +08:00
2025-05-09 00:35:25 +08:00
}
2025-04-18 19:18:15 +08:00
}
}