From 5f168540e6da7d630c924b471865cf878ad6c4cc Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 21 十一月 2025 20:04:13 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts

---
 Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs b/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
index b0c9a8b..22e8364 100644
--- a/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
+++ b/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
@@ -85,7 +85,8 @@
     public void UpdateItemRedPoint(Image imgRed, PhantasmPavilionType type, int id)
     {
         imgRed.SetActive(false);
-
+        if (!IsFuncOpen())
+            return;
         if (!Has(type, id))
             return;
         PhantasmPavilionState state = GetUnLockState(type, id);
@@ -111,6 +112,12 @@
             imgRed.SetActive(true);
         }
     }
+    readonly int funcId = 3;//鍐呮斂
+    //鍐呮斂娌″紑涓嶅埛绾㈢偣
+    public bool IsFuncOpen()
+    {
+        return FuncOpen.Instance.IsFuncOpen(funcId);
+    }
     public void UpdateRedPoint()
     {
         parentRedpoint.state = RedPointState.None;
@@ -123,6 +130,10 @@
             }
         }
 
+
+        if (!IsFuncOpen())
+            return;
+
         // 鏈夊彲鎵嬪姩瑙i攣鐨�
         UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelNormal, 1);
         UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelEvent, 2);

--
Gitblit v1.8.0