You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
823 B

using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using TMPro;
using UnityEngine;
public class IVPpNoticeToast : MonoBehaviour
{
protected CanvasGroup canvasPopup;
protected TextMeshProUGUI txtMsg;
public void Init()
{
canvasPopup = GetComponent<CanvasGroup>();
txtMsg = transform.Find("imgMask").transform.Find("txtMsg").GetComponent<TextMeshProUGUI>();
}
public bool IsOpen()
{
return gameObject.activeSelf;
}
public void ServerNoticeOpen(string strmsg)
{
if (gameObject.activeSelf)
GameUIMgr.SOnClosePopup();
txtMsg.text = strmsg;
canvasPopup.alpha = 1f;
gameObject.SetActive(true);
}
public void ServerNoticeClose()
{
gameObject.SetActive(false);
}
}