资产赠送按钮的修改,拉新榜数据的修改
This commit is contained in:
parent
c495842f85
commit
0bae6b0146
File diff suppressed because it is too large
Load Diff
@ -20,8 +20,8 @@ public class Asset_Details : MonoBehaviour
|
||||
|
||||
public GameObject itemPrefab;
|
||||
// Start is called before the first frame update
|
||||
|
||||
|
||||
public Button GiveawayBtn;
|
||||
|
||||
/// <summary>
|
||||
/// 瑯데
|
||||
@ -38,15 +38,19 @@ public class Asset_Details : MonoBehaviour
|
||||
{
|
||||
case 1:
|
||||
initPanel("괜柯固셕", info.Income,info.Expend,info.Balance);
|
||||
GiveawayBtn.gameObject.SetActive(false);
|
||||
break;
|
||||
case 2:
|
||||
initPanel("쏜귑固셕", info.Income, info.Expend, info.Balance);
|
||||
GiveawayBtn.gameObject.SetActive(true);
|
||||
break;
|
||||
case 3:
|
||||
initPanel("彊두固셕", info.Income, info.Expend, info.Balance);
|
||||
GiveawayBtn.gameObject.SetActive(false);
|
||||
break;
|
||||
case 4:
|
||||
initPanel("똴芚즈固셕", info.Income, info.Expend, info.Balance);
|
||||
GiveawayBtn.gameObject.SetActive(false);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
public class Promotion_Rank : MonoBehaviour
|
||||
@ -24,16 +25,28 @@ public class Promotion_Rank : MonoBehaviour
|
||||
public GameObject Promotionitem;
|
||||
public Transform Content;
|
||||
// Start is called before the first frame update
|
||||
async void Start()
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
|
||||
async void Init()
|
||||
{
|
||||
PromotionRankResponse response = await Scene_main_jiekou.instance.PromotionRanks();
|
||||
//FirstName.text = response.data.ranks[0].nickname;
|
||||
//Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
|
||||
//SecondName.text = response.data.ranks[1].nickname;
|
||||
//Secondcount.text = response.data.ranks[1].quantity+"/" + response.data.ranks[1].require;
|
||||
//ThirdName.text = response.data.ranks[2].nickname;
|
||||
//Thirdcount.text = response.data.ranks[2].quantity + "/" + response.data.ranks[2].require;
|
||||
FirstName.text = response.data.ranks[0].nickname;
|
||||
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
|
||||
FitstPrize.text = response.data.ranks[0].reward.ToString();
|
||||
|
||||
|
||||
SecondName.text = response.data.ranks[1].nickname;
|
||||
Secondcount.text = response.data.ranks[1].quantity + "/" + response.data.ranks[1].require;
|
||||
SecondPrize.text = response.data.ranks[1].reward.ToString();
|
||||
|
||||
ThirdName.text = response.data.ranks[2].nickname;
|
||||
Thirdcount.text = response.data.ranks[2].quantity + "/" + response.data.ranks[2].require;
|
||||
ThirdPrize.text = response.data.ranks[2].reward.ToString();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
Loading…
Reference in New Issue
Block a user