17 lines
365 B
C#
17 lines
365 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class systemMessagePrefab : MonoBehaviour
|
|
{
|
|
[SerializeField] Text systemMessageText;
|
|
|
|
public void Bind(string content)
|
|
{
|
|
if (systemMessageText != null)
|
|
{
|
|
systemMessageText.supportRichText = true;
|
|
systemMessageText.text = content ?? string.Empty;
|
|
}
|
|
}
|
|
}
|