_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/kuangChang10/SuccessItem.cs

26 lines
883 B
C#
Raw Normal View History

2024-12-06 16:14:45 +08:00
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class SuccessItem : Base
{
[Header("10.4<EFBFBD><EFBFBD><EFBFBD><EFBFBD>")] public UserMiningSlot UserMiningSlot;
[Header("10.2<EFBFBD><EFBFBD>ѯ")] public MiningContracDetail MiningDetailData;
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>ť")] public TextMeshProUGUI Todaycount;
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC>ť")] 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;
}
}