少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-16 fc714208ff3a320c3bb52bddd5ea3d91f647a206
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
namespace Snxxz.UI
{
    public class TrialExchangeTitleCell : CellView
    {
        [SerializeField] Image m_BackGround;
        [SerializeField] Text m_Title;
        [SerializeField] Image m_BackGround1;
 
        public void Display(int _class)
        {
            m_Title.text = Language.Get("TrialExchangeTitle", _class);
            var iconKey = _class == 3 ? "OneStageHuawen" : _class == 4 ? "TwoStageHuawen" : "ThreeStageHuawen";
            m_BackGround.SetSprite(iconKey);
            m_BackGround.SetNativeSize();
            m_BackGround1.SetSprite(iconKey);
            m_BackGround1.SetNativeSize();
        }
    }
}