45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class AllManeger : MonoBehaviour
|
|||
|
{
|
|||
|
public queryClosestKnight521 queryClosestKnight521=new queryClosestKnight521();
|
|||
|
public ClosestKnight closestKnight521 = new ClosestKnight();
|
|||
|
|
|||
|
public int id;//<2F><>Ϸid
|
|||
|
public string gameNo;//<2F><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>
|
|||
|
public int GameSession;//<2F><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>
|
|||
|
public List<HorseInfo> horseInfos = new List<HorseInfo>();
|
|||
|
|
|||
|
// Start is called before the first frame update
|
|||
|
async void Start()
|
|||
|
{
|
|||
|
closestKnight521 = await queryClosestKnight521.queryClosestKnight();
|
|||
|
GetHorseInfo(closestKnight521.Data.GameKnightRoomResponseVoList);
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
public void GetHorseInfo(List<GameKnightRoomResponseVo> GameKnightRoomResponseVoList)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>Ϣ
|
|||
|
{
|
|||
|
foreach (GameKnightRoomResponseVo item in GameKnightRoomResponseVoList)
|
|||
|
{
|
|||
|
foreach (HorseInfo horse in horseInfos)
|
|||
|
{
|
|||
|
horse.KnightId = item.KnightId;
|
|||
|
horse.HorseNo = item.HorseNo;
|
|||
|
horse.HorseUserNo = item.HorseUserNo;
|
|||
|
horse.HorseBeansCoin = item.HorseBeansCoin;
|
|||
|
horse.numText.text= item.HorseBeansCoin.ToString();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|