using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using XRTool.Util;

public class Tip2Window : WindowSingleton<Tip2Window>
{
    public TextMeshProUGUI infoText;
    public void showTxt(string info,Action callBack)
    {
        this.transform.SetAsLastSibling();
        infoText.text = info;
        TimerMgr.Instance.CreateTimer(()=> {
            WindowsManager.Instance.isShowTip = false;
            this.gameObject.SetActive(false);
            callBack.Invoke();
        },3f);
    }


}