NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/SubSystems/ScrollNoticeManager.cs

31 lines
666 B
C#
Raw Normal View History

2024-09-10 12:53:57 +08:00
using PhxhSDK;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScrollNoticeManager : Singlenton<ScrollNoticeManager>
{
bool allowNotice = true;
public Queue<string> receives = new Queue<string>();
public void AddNotice(string notice)
{
receives.Enqueue(notice);
DebugUtil.Log("<22><><EFBFBD>ӹ<EFBFBD><D3B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>棺" + notice);
}
public void ShowNotice()
{
if (receives.Count > 0 && allowNotice)
{
string notice = receives.Dequeue();
DebugUtil.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>棺" + notice);
}
}
public void ClearNotice()
{
receives.Clear();
}
}