//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, August 14, 2018 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; using TableConfig; namespace Snxxz.UI { public class DemonJarBossIntroduceBehaviour : BossIntroduceBehaviour { [SerializeField] Text[] m_UndoubtedlyRewardDescription; protected override void DrawReward() { base.DrawReward(); if (m_FindPreciousType == FindPreciousType.DemonJar) { var demonJarConfig = Config.Instance.Get(bossId); for (int i = 0; i < m_UndoubtedlyRewardDescription.Length; i++) { var behaviour = m_UndoubtedlyRewardDescription[i]; if (i < demonJarConfig.MustItemDescriptions.Length) { behaviour.gameObject.SetActive(true); behaviour.text = demonJarConfig.MustItemDescriptions[i]; } else { behaviour.gameObject.SetActive(false); } } } } } }