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
| using UnityEngine;
| using UnityEngine.UI;
|
| public class HeroCardLineTipCell : CellView
| {
| [SerializeField] Text tipText;
| [SerializeField] Image tipBG;
|
| //0 生效 1 未生效
| public void Display(int type)
| {
| if (type == 0)
| {
| tipText.text = Language.Get("herocard71", HeroManager.Instance.GetAttrActiveHeroCount());
| //7E4038
| tipText.color = new Color32(126, 64, 56, 255);
| tipBG.SetOrgSprite("herolineactive", "Hero");
| }
| else
| {
| tipText.text = Language.Get("herocard72", HeroManager.Instance.GetNotActiveHeroCount());
| //6E5C60
| tipText.color = new Color32(110, 92, 96, 255);
| tipBG.SetOrgSprite("herolinenoactive", "Hero");
| }
| }
| }
|
|