using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class SuccessItem : Base { [Header("10.4返回")] public UserMiningSlot UserMiningSlot; [Header("10.2查询")] public MiningContracDetail MiningDetailData; [Header("购买合约按钮")] public TextMeshProUGUI Todaycount; [Header("购买合约按钮")] public TextMeshProUGUI Allcount; // Start is called before the first frame update async void Start() { queryMiningContracDetail102 queryMiningContracDetail = new queryMiningContracDetail102(); MiningDetailData = await queryMiningContracDetail.QueryMiningContracDetail(UserMiningSlot.contractId); Todaycount.text =""+ (int)MiningDetailData.data.voluteCoinReward / MiningDetailData.data.miningDays; Allcount.text = "" + UserMiningSlot.carry; } }