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(); txtMsg = transform.Find("imgMask").transform.Find("txtMsg").GetComponent(); } 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); } }