lcy
2026-06-10 bb0cc1ef463ab4ee8c0e9584531161727d17d615
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
using Cysharp.Threading.Tasks;
using UnityEngine;
 
public class GuildAtkDefBatPlayerShowCell : MonoBehaviour
{
    [SerializeField] HorseController model;
    [SerializeField] RectTransform deathRect;
    [SerializeField] ButtonEx clickButton;
 
    public void Display(int heroSkinID, int horseSkinID, int playerID, int serverID, bool isDeath)
    {
        model.SetActive(!isDeath);
        deathRect.SetActive(isDeath);
        if (!isDeath)
            model.Create(horseSkinID, heroSkinID, 0.8f);
 
        clickButton.SetListener(() =>
        {
            AvatarHelper.TryViewOtherPlayerInfo(playerID, serverID, viewPlayerLineupType: (int)BattlePreSetType.GuildAtkDefBat);
        });
    }
 
    public void SetActive(bool active)
    {
        gameObject.SetActive(active);
    }
 
}