26 lines
883 B
C#
26 lines
883 B
C#
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;
|
|
|
|
}
|
|
}
|