少年修仙传客户端代码仓库
hch
2023-06-14 f23c81d21c9cc4c9f06e8bed3ebb7ddbe7e15ac3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//--------------------------------------------------------
//    [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<Item> _runes)
        {
            for (int i = 0; i < m_Runes.Length; i++)
            {
                var behaviour = m_Runes[i];
                if (i < _runes.Count)
                {
                    behaviour.SetActive(true);
                    behaviour.Display(_runes[i].id, _runes[i].count);
                }
                else
                {
                    behaviour.SetActive(false);
                }
            }
        }
 
    }
 
}