消息点问题

This commit is contained in:
CaiYanPeng 2022-07-18 10:10:40 +08:00
parent c5fb7b93a3
commit 68071a95f6
2 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,10 @@ public class MainNav : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (App.hasNotRead != transform.Find("Mail/Dot").gameObject.activeInHierarchy)
{
ShowMailDot(App.hasNotRead, null);
}
#if UNITY_ANDROID || UNITY_IOS #if UNITY_ANDROID || UNITY_IOS
if (delayTime < 0) if (delayTime < 0)
{ {

View File

@ -277,6 +277,10 @@ public class NewMainNav : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (App.hasNotRead != transform.Find("Mail/Dot").gameObject.activeInHierarchy)
{
ShowMailDot(App.hasNotRead, null);
}
if (Input.touchCount > 0) if (Input.touchCount > 0)
{ {
isTouch = true; isTouch = true;