From ed4fc25e7ca97016ca3b8bdcbe7738d397500328 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 26 九月 2018 16:26:19 +0800
Subject: [PATCH] 3867 【前端】神兽地图优化
---
System/DogzDungeon/DogzDungeonBreifInfoBehaviour.cs | 6 +++---
System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/System/DogzDungeon/DogzDungeonBreifInfoBehaviour.cs b/System/DogzDungeon/DogzDungeonBreifInfoBehaviour.cs
index 68b9d92..3f1fd31 100644
--- a/System/DogzDungeon/DogzDungeonBreifInfoBehaviour.cs
+++ b/System/DogzDungeon/DogzDungeonBreifInfoBehaviour.cs
@@ -195,11 +195,11 @@
m_Portrait.SetSprite(_icon);
m_Portrait.SetNativeSize();
- if (m_Realm != null)
+ if (m_Realm != null && m_RealmContainer != null)
{
if (Config.Instance.ContainKey<RealmConfig>(_realm))
{
- m_Realm.gameObject.SetActive(true);
+ m_RealmContainer.gameObject.SetActive(true);
var realmConfig = Config.Instance.Get<RealmConfig>(_realm);
if (realmConfig != null)
{
@@ -208,7 +208,7 @@
}
else
{
- m_Realm.gameObject.SetActive(false);
+ m_RealmContainer.gameObject.SetActive(false);
}
}
}
diff --git a/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs b/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
index 732b3f8..3fc5010 100644
--- a/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
+++ b/System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
@@ -25,6 +25,7 @@
[SerializeField] protected ImageEx m_Portrait;
[SerializeField] protected TextEx m_BossName;
[SerializeField] protected TextEx m_BossLevel;
+ [SerializeField] protected RectTransform m_RealmContainer;
[SerializeField] protected Image m_Realm;
[SerializeField] protected TimerBehaviour m_CoolDown;
[SerializeField] protected Transform m_RefreshAtOnce;
@@ -90,11 +91,11 @@
m_BossName.text = _name;
m_BossLevel.text = Language.Get("Z1024", _level);
- if (m_Realm != null)
+ if (m_Realm != null && m_RealmContainer != null)
{
if (Config.Instance.ContainKey<RealmConfig>(_realm))
{
- m_Realm.gameObject.SetActive(true);
+ m_RealmContainer.gameObject.SetActive(true);
var realmConfig = Config.Instance.Get<RealmConfig>(_realm);
if (realmConfig != null)
{
@@ -103,7 +104,7 @@
}
else
{
- m_Realm.gameObject.SetActive(false);
+ m_RealmContainer.gameObject.SetActive(false);
}
}
}
--
Gitblit v1.8.0