YanCheng_Metrology/Assets/Scripts/CXX/UI/TipPanel.cs

20 lines
353 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class TipPanel : MonoBehaviour
{
public TextMeshProUGUI m_TextMeshProUGUI;
public void Init(string tip)
{
m_TextMeshProUGUI.text= tip;
Invoke("Des", 2);
}
public void Des()
{
Destroy(gameObject);
}
}