Compare commits
2 Commits
8d253a5394
...
918367fac6
Author | SHA1 | Date | |
---|---|---|---|
918367fac6 | |||
0bae6b0146 |
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@ public class Asset_Details : MonoBehaviour
|
|||||||
public GameObject itemPrefab;
|
public GameObject itemPrefab;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
|
|
||||||
|
public Button GiveawayBtn;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 瑯데
|
/// 瑯데
|
||||||
@ -38,15 +38,19 @@ public class Asset_Details : MonoBehaviour
|
|||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
initPanel("괜柯固셕", info.Income,info.Expend,info.Balance);
|
initPanel("괜柯固셕", info.Income,info.Expend,info.Balance);
|
||||||
|
GiveawayBtn.gameObject.SetActive(false);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
initPanel("쏜귑固셕", info.Income, info.Expend, info.Balance);
|
initPanel("쏜귑固셕", info.Income, info.Expend, info.Balance);
|
||||||
|
GiveawayBtn.gameObject.SetActive(true);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
initPanel("彊두固셕", info.Income, info.Expend, info.Balance);
|
initPanel("彊두固셕", info.Income, info.Expend, info.Balance);
|
||||||
|
GiveawayBtn.gameObject.SetActive(false);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
initPanel("똴芚즈固셕", info.Income, info.Expend, info.Balance);
|
initPanel("똴芚즈固셕", info.Income, info.Expend, info.Balance);
|
||||||
|
GiveawayBtn.gameObject.SetActive(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Unity.VisualScripting;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
public class Promotion_Rank : MonoBehaviour
|
public class Promotion_Rank : MonoBehaviour
|
||||||
@ -24,16 +25,28 @@ public class Promotion_Rank : MonoBehaviour
|
|||||||
public GameObject Promotionitem;
|
public GameObject Promotionitem;
|
||||||
public Transform Content;
|
public Transform Content;
|
||||||
// Start is called before the first frame update
|
// 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();
|
PromotionRankResponse response = await Scene_main_jiekou.instance.PromotionRanks();
|
||||||
//FirstName.text = response.data.ranks[0].nickname;
|
FirstName.text = response.data.ranks[0].nickname;
|
||||||
//Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
|
Firstcount.text = response.data.ranks[0].quantity + "/" + response.data.ranks[0].require;
|
||||||
//SecondName.text = response.data.ranks[1].nickname;
|
FitstPrize.text = response.data.ranks[0].reward.ToString();
|
||||||
//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;
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
// Update is called once per frame
|
||||||
|
Loading…
Reference in New Issue
Block a user