26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using PlayFab.ClientModels;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PetBattleWitchInfo : ScrollViewMgr
|
|
{
|
|
public UISprite[] sprites; // 0 얼굴
|
|
public UILabel[] lables; // 0 이름(투견장 등급)
|
|
|
|
public void Set(bool _my, ServerData sdata, PlayerLeaderboardEntry _entry)
|
|
{
|
|
gameObject.SetActive(true);
|
|
|
|
string nick = _my ? ServerInfo.Ins.UserName : _entry.DisplayName;
|
|
if (!_my) PetBattleUI.EnemyNick = nick;
|
|
|
|
sprites[0].spriteName = DSUtil.Get_ItemSpriteInfo(eItem.PC, sdata.Get_EqiupmentEquip(eItem.PC)).Icon;
|
|
//lables[0].text = DSUtil.Format("{0}({1})", nick, table_title.Ins.Get_Data(table_memorypetbattle.Ins.Get_Data(sdata.Get_Memeory_PetBattle_Point()).TitleID).Name);
|
|
lables[0].text = nick;
|
|
//var mypets = sdata.Equip.Get_Preset_byGameMode(105).PetEquip;
|
|
//Set_ScrollView(new List<int> { mypets[0], mypets[1], mypets[2] });
|
|
//for (int i = 0; i < list_CardBase.Count; i++)
|
|
// (list_CardBase[i] as PetBattlePetInfoCard).Set(sdata);
|
|
}
|
|
} |