2024-12-05 15:49:54 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
public class KuangChangPop : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
queryMiningContractList101 queryMiningContractList = new queryMiningContractList101();//10.110.1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><EFBFBD><EFBFBD>Լ
|
|
|
|
|
MiningContractList miningContractList = new MiningContractList();
|
|
|
|
|
public GameObject ItemParent;
|
|
|
|
|
public GameObject kuanghcangItem;
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
async void Start()
|
|
|
|
|
{
|
2024-12-05 17:02:12 +08:00
|
|
|
|
//<2F><>ѯ<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD>Լ
|
2024-12-05 15:49:54 +08:00
|
|
|
|
miningContractList = await queryMiningContractList.QueryMiningContract();
|
|
|
|
|
Debug.Log(miningContractList.data.Count);
|
|
|
|
|
for (int i = miningContractList.data.Count -1; i >= 0; i--)
|
2024-12-05 17:02:12 +08:00
|
|
|
|
{
|
2024-12-05 15:49:54 +08:00
|
|
|
|
var miningContract = miningContractList.data[i];
|
|
|
|
|
GameObject item = Instantiate(kuanghcangItem);
|
|
|
|
|
item.transform.parent = ItemParent.transform;
|
|
|
|
|
NewkuangchangItem newiItem = item.GetComponent<NewkuangchangItem>();
|
2024-12-05 17:02:12 +08:00
|
|
|
|
newiItem.count.text = miningContract.voluteCoinBuy.ToString();//<2F><>ʾÿһ<C3BF><D2BB><EFBFBD><EFBFBD>Լ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>踳ֵ
|
|
|
|
|
newiItem.miningContract = miningContractList.data[i];//<2F><>ÿһ<C3BF><D2BB><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>ֵ
|
2024-12-05 15:49:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|