2024-11-25 22:58:30 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2024-11-26 17:12:11 +08:00
|
|
|
public class LoginItem :MonoBehaviour
|
2024-11-25 22:58:30 +08:00
|
|
|
{
|
|
|
|
|
2024-11-26 17:12:11 +08:00
|
|
|
public Transform contentItem;
|
|
|
|
GoodIdPage41 goodId = new GoodIdPage41();
|
2024-11-26 00:41:57 +08:00
|
|
|
GoodIdResponse idResponse = new GoodIdResponse();
|
2024-11-26 17:12:11 +08:00
|
|
|
// GoodIdItem goodiditem = new GoodIdItem();
|
2024-11-25 22:58:30 +08:00
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
}
|
|
|
|
|
2024-11-26 00:41:57 +08:00
|
|
|
public async void Init()
|
|
|
|
{
|
|
|
|
idResponse=await goodId.queryUnionPage();
|
|
|
|
for (int i = 0; i < idResponse.Data.DataList.Count; i++)
|
2024-11-26 17:12:11 +08:00
|
|
|
{
|
|
|
|
GameObject Lhitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/Beautiful_numberttem"),contentItem);
|
|
|
|
Lhitem.GetComponent<NumberTc>().BeautifulNumber.text = idResponse.Data.DataList[i].CuteNo;
|
|
|
|
Lhitem.GetComponent<NumberTc>().price.text = idResponse.Data.DataList[i].BeansCoin.ToString();
|
|
|
|
if (idResponse.Data.DataList[i].Type == 1)
|
|
|
|
{
|
|
|
|
Lhitem.GetComponent<NumberTc>().musk_show();
|
|
|
|
}
|
2024-11-26 00:41:57 +08:00
|
|
|
}
|
2024-11-26 17:12:11 +08:00
|
|
|
|
2024-11-25 22:58:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|