From b4d5a32a7cc9035bb1efa29ad062cd2bd70ad898 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 04 九月 2018 16:15:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs b/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
index df5c0ba..732b3f8 100644
--- a/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
+++ b/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
@@ -83,7 +83,7 @@
findPreciousModel.bossInfoUpdateEvent -= OnBossInfoUpdate;
}
- protected void DrawBossBaseInfo(string _icon, string _name, int _level, int _realm)
+ protected virtual void DrawBossBaseInfo(string _icon, string _name, int _level, int _realm)
{
m_Portrait.SetSprite(_icon);
m_Portrait.SetNativeSize();
@@ -134,7 +134,7 @@
m_Portrait.material = isGray ? m_GrayMaterial : m_NormalMaterial;
}
- protected void UpdateBossRebornCoolDown(bool _isUnLocked)
+ protected virtual void UpdateBossRebornCoolDown(bool _isUnLocked)
{
if (_isUnLocked)
{
@@ -224,13 +224,16 @@
}
}
- if (isRebornRightNow && !m_RefreshAtOnce.gameObject.activeInHierarchy)
+ if (m_RefreshAtOnce != null)
{
- m_RefreshAtOnce.gameObject.SetActive(true);
- }
- else if (!isRebornRightNow && m_RefreshAtOnce.gameObject.activeInHierarchy)
- {
- m_RefreshAtOnce.gameObject.SetActive(false);
+ if (isRebornRightNow && !m_RefreshAtOnce.gameObject.activeInHierarchy)
+ {
+ m_RefreshAtOnce.gameObject.SetActive(true);
+ }
+ else if (!isRebornRightNow && m_RefreshAtOnce.gameObject.activeInHierarchy)
+ {
+ m_RefreshAtOnce.gameObject.SetActive(false);
+ }
}
}
--
Gitblit v1.8.0