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).Forget();
|
|
clickButton.SetListener(() =>
|
{
|
AvatarHelper.TryViewOtherPlayerInfo(playerID, serverID, viewPlayerLineupType: (int)BattlePreSetType.GuildAtkDefBat);
|
});
|
}
|
|
public void SetActive(bool active)
|
{
|
gameObject.SetActive(active);
|
}
|
|
}
|