forked from zxl/Frame
1
0
Fork 0
Frame/Assets/Scripts/UI/UIInfo.cs

23 lines
502 B
C#
Raw Normal View History

2024-04-08 18:44:01 +08:00
using TMPro;
using UnityEngine;
2024-04-03 17:46:56 +08:00
namespace Game
{
2024-04-08 18:44:01 +08:00
class UIInfo : MonoBehaviour
2024-04-03 17:46:56 +08:00
{
2024-04-08 18:44:01 +08:00
[SerializeField] public IUI ui;
public TMP_FontAsset font;
2024-04-03 17:46:56 +08:00
2024-04-08 18:44:01 +08:00
public void SetStart(IUI ui, TMP_FontAsset font)
{
this.ui = ui;
this.font = font;
var findChildDeeps = this.transform.FindChildDeeps<TMP_Text>();
foreach (var tmpText in findChildDeeps)
{
tmpText.font = font;
}
}
2024-04-03 17:46:56 +08:00
}
}