_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/kuangChang10/SuccessItem.cs
2024-12-06 16:14:45 +08:00

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;
}
}