From 15a5fc8a8b9bfdb5b8ec5fe917ea9eb726e21a17 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 07 十月 2019 16:21:42 +0800
Subject: [PATCH] 0312 开服排行迁移,免费商品红点
---
System/MainInterfacePanel/TopRightTip.cs | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/System/MainInterfacePanel/TopRightTip.cs b/System/MainInterfacePanel/TopRightTip.cs
index 591373c..cb9121e 100644
--- a/System/MainInterfacePanel/TopRightTip.cs
+++ b/System/MainInterfacePanel/TopRightTip.cs
@@ -18,6 +18,7 @@
public Image m_MapImage;
public Image m_MapHero;
public Text m_MapName;
+ public Button m_ServerRank;
LocalMap mapMatrix;
Vector3 heroPrePosition = new Vector3(-999, -8888, 0);
@@ -30,6 +31,8 @@
m_Map.SetListener(OpenMapWin);
m_Daily.SetListener(OpenDailyQuestWin);
m_BackPack.SetListener(OpenBackpack);
+ m_ServerRank.SetListener(OpenRank);
+ OpenServerActivityCenter.Instance.openServerActivityStateChange += OpenServerActivityStateChange;
}
public void UnInit()
@@ -37,6 +40,18 @@
m_Map.RemoveAllListeners();
m_Daily.RemoveAllListeners();
m_BackPack.RemoveAllListeners();
+ m_ServerRank.RemoveAllListeners();
+ OpenServerActivityCenter.Instance.openServerActivityStateChange -= OpenServerActivityStateChange;
+ }
+
+ private void OpenServerActivityStateChange()
+ {
+ m_ServerRank.gameObject.SetActive(OpenServerActivityCenter.Instance.IsActivityOpen(0));
+ }
+
+ private void OpenRank()
+ {
+ WindowCenter.Instance.Open<OpenServerActivityRankWin>();
}
private void OpenMapWin()
--
Gitblit v1.8.0