//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, June 08, 2018 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; using System.Collections.Generic; namespace Snxxz.UI { public class RuneTowerSweepResultRuneGroup : MonoBehaviour { [SerializeField] RuneTowerSweepResultRune[] m_Runes; public void Display(List _runes) { for (int i = 0; i < m_Runes.Length; i++) { var behaviour = m_Runes[i]; if (i < _runes.Count) { behaviour.gameObject.SetActive(true); behaviour.Display(_runes[i].id, _runes[i].count); } else { behaviour.gameObject.SetActive(false); } } } } }