23 lines
502 B
C#
23 lines
502 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Game
|
|
{
|
|
class UIInfo : MonoBehaviour
|
|
{
|
|
[SerializeField] public IUI ui;
|
|
public TMP_FontAsset font;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} |