hch
9 天以前 c8aea6cbef51b3dd41b4d911bc7e6bf89a6e2e2d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Collections.Generic;
using UnityEngine;
 
public class HeroDebutCallHistoryOutCell : HeroDebutCallHistoryCell
{
    [SerializeField] ButtonEx clickButton;
    [SerializeField] CanvasGroup canvasGroup;
    float[] alphas = new float[4] { 0.45f, 0.60f, 0.80f, 1f };
    public override void Display(int index, List<HeroDebutGameRec> list)
    {
        base.Display(index, list);
        clickButton.SetListener(() => UIManager.Instance.OpenWindow<HeroDebutCallHistoryWin>());
 
        float alpha = alphas[index];
        canvasGroup.alpha = alpha;
    }
}