_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/kuangChang10/KuangChangTest.cs

52 lines
2.2 KiB
C#
Raw Normal View History

2024-12-02 17:51:28 +08:00
using System.Collections;
using System.Collections.Generic;
2024-12-05 15:49:54 +08:00
using TMPro;
2024-12-02 17:51:28 +08:00
using UnityEngine;
2024-12-05 15:49:54 +08:00
using UnityEngine.SceneManagement;
using UnityEngine.UI;
2024-12-02 17:51:28 +08:00
public class KuangChangTest : MonoBehaviour
{
queryMiningContractList101 queryMiningContractList = new queryMiningContractList101();//10.110.1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><EFBFBD><EFBFBD>Լ
2024-12-05 15:49:54 +08:00
MiningContractList miningContractList=new MiningContractList();
2024-12-02 17:51:28 +08:00
queryMiningContracDetail102 queryMiningContracDetail = new queryMiningContracDetail102();//10.2
MiningContracDetail miningContracDetail = new MiningContracDetail();
buyMiningContract103 buyMiningContract = new buyMiningContract103();//10.3
queryUserMiningSlot104 queryUserMiningSlot = new queryUserMiningSlot104();//10.4
openSlot105 openSlot5 = new openSlot105();//10.5
queryMyPureContract106 queryMyPureContract = new queryMyPureContract106();//10.6
bindSlot107 bindSlot = new bindSlot107();
queryUserVoluteCoin108 queryUserVoluteCoin = new queryUserVoluteCoin108();
2024-12-05 15:49:54 +08:00
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>ť")] public Button ReturnButton;
[Header("<22>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>")] public TextMeshProUGUI Userdata;
2024-12-02 17:51:28 +08:00
async void Start()
{
2024-12-05 15:49:54 +08:00
//queryMiningContractList.QueryMiningContract();
2024-12-05 21:23:44 +08:00
//miningContracDetail = await queryMiningContracDetail.QueryMiningContracDetail(3);
2024-12-05 17:02:12 +08:00
2024-12-05 15:49:54 +08:00
//bool isBuySucceed = await buyMiningContract.BuyMiningContract(1);
////Debug.Log("====<3D><><EFBFBD><EFBFBD>===" + isBuySucceed);
////Debug.Log(buyMiningContract.BuyMiningContract(2) + "==========<3D><>");
////Debug.Log(openSlot5.OpenSlot() + "===============<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
//queryMyPureContract.QueryMyPureContract();
2024-12-05 17:02:12 +08:00
//<2F><>ѯ<EFBFBD>󳧿<EFBFBD><F3B3A7BF>۷<EFBFBD>ҳ<EFBFBD><D2B3>
queryUserMiningSlot.QueryUserMiningSlot();
2024-12-05 15:49:54 +08:00
//bool isSucceed = await bindSlot.BindSlot(1, 1);
////Debug.Log(isSucceed + "========<3D>󶨿<EFBFBD><F3B6A8BF><EFBFBD>");
2024-12-05 17:02:12 +08:00
//miningContractList = await queryMiningContractList.QueryMiningContract();
2024-12-05 15:49:54 +08:00
2024-12-05 17:02:12 +08:00
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳˢ<D2B3><CBA2><EFBFBD>Ͽ<EFBFBD>ֵ
2024-12-05 15:49:54 +08:00
QueryUserVoluteCoinResponse queryUserVoluteCoinResponse = await queryUserVoluteCoin.QueryUserVoluteCoin();
Userdata.text = queryUserVoluteCoinResponse.data.ToString();
ReturnButton.onClick.AddListener((() => { SceneManager.LoadScene(1);}));
2024-12-02 17:51:28 +08:00
}
// Update is called once per frame
void Update()
{
}
}