21 lines
542 B
C#
21 lines
542 B
C#
using Logic.Multilingual;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace TH1_UI.View.Outside
|
|
{
|
|
// 关于面板里的 staff 单人行
|
|
public class UIOutsideAboutStaffLineMono : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI NameText;
|
|
public TextMeshProUGUI DescText;
|
|
|
|
public void SetContent(StaffItem item)
|
|
{
|
|
if (item == null) return;
|
|
MultilingualManager.Instance.SetUIText(NameText, item.Name);
|
|
MultilingualManager.Instance.SetUIText(DescText, item.Desc);
|
|
}
|
|
}
|
|
}
|