18 lines
338 B
C#
18 lines
338 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class UIPopup : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private TMPro.TextMeshProUGUI _text;
|
||
|
|
||
|
public string Prefix;
|
||
|
public string Postfix;
|
||
|
|
||
|
public void Init(string message)
|
||
|
{
|
||
|
_text.SetText(Prefix + message + Postfix);
|
||
|
}
|
||
|
}
|