2024-10-30 23:18:31 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class RootObject
|
|
|
|
|
{
|
|
|
|
|
public List<Item> List;
|
|
|
|
|
public int ErrorCode;
|
|
|
|
|
public string ErrorMessage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Item
|
|
|
|
|
{
|
|
|
|
|
public int Id;
|
|
|
|
|
public int Num;
|
|
|
|
|
public string Name;
|
|
|
|
|
public int ActivateValue;
|
|
|
|
|
public int StoreValue;
|
|
|
|
|
public float Yield;
|
|
|
|
|
public int Limit;
|
|
|
|
|
public int EndureTime;
|
|
|
|
|
public List<float> ReferrerBouns;
|
|
|
|
|
public string CreateDateTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-10-31 02:49:53 +08:00
|
|
|
|
public class JinShaBuy : mount
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public int number=1;
|
2024-10-31 13:27:31 +08:00
|
|
|
|
public override void Awake()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2024-10-30 23:18:31 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2024-10-31 02:49:53 +08:00
|
|
|
|
|
2024-10-31 13:27:31 +08:00
|
|
|
|
public void Show_buy()//<2F><><EFBFBD><EFBFBD>
|
2024-10-31 02:49:53 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<BoxType> boxTypes = new List<BoxType>();
|
|
|
|
|
boxTypes.Add(new BoxType { Name = "account_number", textName = " <20><><EFBFBD><EFBFBD>", prompt = "<22><><EFBFBD><EFBFBD><EFBFBD>빺<EFBFBD><EBB9BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", Type = 6, is_required = true });
|
|
|
|
|
boxTypes.Add(new BoxType { Name = "submit", textName = " ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ", Type = 2 });
|
|
|
|
|
GameObject gameObject = add_pop_up(true);//<2F><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>ĸ<EFBFBD><C4B8>
|
|
|
|
|
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "<22><><EFBFBD><EFBFBD>");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
gameObjects[1].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//<2F><>¼ȷ<C2BC><C8B7><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1>
|
|
|
|
|
{
|
|
|
|
|
if (type == 0)
|
|
|
|
|
{
|
|
|
|
|
gameObject.GetComponent<input_box_pop_up_window>().destroy();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (type == 1)
|
|
|
|
|
{
|
|
|
|
|
string response = await web.SendRequest("http://47.109.133.52/MinerElf/GetList", "POST");
|
|
|
|
|
Debug.Log(response);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Debug.Log(boxTypes[1].content);
|
|
|
|
|
//number = int.Parse(boxTypes[0].content);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-30 23:18:31 +08:00
|
|
|
|
}
|