using System;
|
using System.Linq;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
|
public class BattlePassBaseCell : CellView
|
{
|
[SerializeField] Image bg;
|
[SerializeField] Image word;
|
[SerializeField] RedpointBehaviour redPoint;
|
[SerializeField] Button btn;
|
|
|
|
public void Display(int type)
|
{
|
bg.SetSprite("BattlePassBG" + type);
|
word.SetSprite("BattlePassWord" + type);
|
redPoint.redpointId = MainRedDot.RedPoint_FundKey * 100 + type;
|
btn.AddListener(() =>
|
{
|
UIManager.Instance.OpenWindow<BattlePassCommonWin>(type);
|
});
|
}
|
|
|
}
|