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(); Debug.Log(miningContract.id); bool isBuySucceed = await buyMiningContract.BuyMiningContract(miningContract.id); //bindSlot107 bindSlot = new bindSlot107(); //bindSlot.BindSlot() } // Update is called once per frame void Update() { } }