using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class ErrorTip : MonoBehaviour { public static ErrorTip Instance; public TextMeshProUGUI text; public GameObject page; private void Awake() { Instance = this; } public void ShowErrorTip(string value) { page.SetActive(true); text.text = value; } }