From 68071a95f604302390a05481b052831bd0c01dfb Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Mon, 18 Jul 2022 10:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=82=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/Prefab/MainNav.cs | 4 ++++ Assets/Scripts/UI/Prefab/NewMainNav.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Assets/Scripts/UI/Prefab/MainNav.cs b/Assets/Scripts/UI/Prefab/MainNav.cs index 9643c586..1fdc9d16 100644 --- a/Assets/Scripts/UI/Prefab/MainNav.cs +++ b/Assets/Scripts/UI/Prefab/MainNav.cs @@ -107,6 +107,10 @@ public class MainNav : MonoBehaviour // Update is called once per frame void Update() { + if (App.hasNotRead != transform.Find("Mail/Dot").gameObject.activeInHierarchy) + { + ShowMailDot(App.hasNotRead, null); + } #if UNITY_ANDROID || UNITY_IOS if (delayTime < 0) { diff --git a/Assets/Scripts/UI/Prefab/NewMainNav.cs b/Assets/Scripts/UI/Prefab/NewMainNav.cs index b038b34f..179fd1d7 100644 --- a/Assets/Scripts/UI/Prefab/NewMainNav.cs +++ b/Assets/Scripts/UI/Prefab/NewMainNav.cs @@ -277,6 +277,10 @@ public class NewMainNav : MonoBehaviour // Update is called once per frame void Update() { + if (App.hasNotRead != transform.Find("Mail/Dot").gameObject.activeInHierarchy) + { + ShowMailDot(App.hasNotRead, null); + } if (Input.touchCount > 0) { isTouch = true;