2024-11-27 01:48:52 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Scene_main_jiekou :Base
|
|
|
|
|
{
|
|
|
|
|
public static Scene_main_jiekou instance;
|
|
|
|
|
public mainBTN _mainBTN;
|
2024-11-27 22:22:41 +08:00
|
|
|
|
|
|
|
|
|
//<2F>û<EFBFBD><C3BB><EFBFBD>Ϣ
|
|
|
|
|
private RealPlayerInfo _realPlayerInfo;//<2F>û<EFBFBD><C3BB><EFBFBD>Ϣ<EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|
|
|
|
private queryPlayerInfo _queryPlayerInfo;//<2F>û<EFBFBD><C3BB><EFBFBD>Ϣ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//<2F>̳<EFBFBD><CCB3><EFBFBD>Ϣ
|
|
|
|
|
public MallResponsePro _mallResponsePro;//<2F>̳<EFBFBD><CCB3>б<EFBFBD><D0B1>ṹ<EFBFBD><E1B9B9>
|
|
|
|
|
private getMallList21 _getMallList21;//<2F>̳<EFBFBD><CCB3>б<EFBFBD><D0B1><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
|
|
|
|
|
|
2024-11-27 01:48:52 +08:00
|
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
instance = this;
|
2024-11-27 22:22:41 +08:00
|
|
|
|
|
|
|
|
|
testLogo();
|
2024-11-27 11:25:42 +08:00
|
|
|
|
//getInfo();
|
2024-11-27 22:22:41 +08:00
|
|
|
|
// getShopInfo();
|
2024-11-27 01:48:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-11-27 22:22:41 +08:00
|
|
|
|
async void getPlayerInfo()
|
2024-11-27 01:48:52 +08:00
|
|
|
|
{
|
2024-11-27 22:22:41 +08:00
|
|
|
|
await PlayerInfoAsync();
|
|
|
|
|
/*Debug.Log(_realPlayerInfo.data.nickName);
|
2024-11-27 01:48:52 +08:00
|
|
|
|
Debug.Log(_realPlayerInfo.data.voluteCoin);
|
2024-11-27 22:22:41 +08:00
|
|
|
|
Debug.Log(_realPlayerInfo.data.beansCoin);*/
|
|
|
|
|
_mainBTN.UpDatePlayer(_realPlayerInfo.data.nickName, _realPlayerInfo.data.voluteCoin.ToString("f1") + "M", _realPlayerInfo.data.beansCoin.ToString("f1") + "M");
|
2024-11-27 01:48:52 +08:00
|
|
|
|
}
|
2024-11-27 22:22:41 +08:00
|
|
|
|
|
|
|
|
|
async Task PlayerInfoAsync()
|
2024-11-27 01:48:52 +08:00
|
|
|
|
{
|
2024-11-27 22:22:41 +08:00
|
|
|
|
_realPlayerInfo = new RealPlayerInfo();
|
2024-11-27 01:48:52 +08:00
|
|
|
|
_queryPlayerInfo = new queryPlayerInfo();
|
|
|
|
|
_realPlayerInfo = await _queryPlayerInfo.QueryPlayerInfoPro();
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-27 22:22:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task ShopInfo()
|
|
|
|
|
{
|
|
|
|
|
_mallResponsePro = new MallResponsePro();
|
|
|
|
|
_getMallList21 = new getMallList21();
|
|
|
|
|
|
|
|
|
|
_mallResponsePro = await _getMallList21.getMallList(1, 1, 20);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-11-27 01:48:52 +08:00
|
|
|
|
}
|