rabidus-test/Assets/Scripts/UIPopup.cs

18 lines
338 B
C#
Raw Permalink Normal View History

2023-08-22 15:41:12 +03:00
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);
}
}