2024-12-05 15:49:54 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using TMPro;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class NewkuangchangItem : MonoBehaviour
|
|
|
|
{
|
|
|
|
// Start is called before the first frame update
|
|
|
|
public MiningContract miningContract;
|
|
|
|
public TextMeshProUGUI count;
|
|
|
|
public Button BuyButton;
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
BuyButton.onClick.AddListener(BuyItem);
|
|
|
|
}
|
|
|
|
|
|
|
|
async void BuyItem()
|
|
|
|
{
|
|
|
|
buyMiningContract103 buyMiningContract = new buyMiningContract103();
|
2024-12-05 17:02:12 +08:00
|
|
|
Debug.Log(miningContract.id);
|
|
|
|
bool isBuySucceed = await buyMiningContract.BuyMiningContract(miningContract.id);
|
|
|
|
//bindSlot107 bindSlot = new bindSlot107();
|
|
|
|
//bindSlot.BindSlot()
|
2024-12-05 15:49:54 +08:00
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|