2024-11-25 22:58:30 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
public class Nice_numPanel : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public Button CancleBtn;
|
|
|
|
|
public Button ConfirmBtn;
|
2024-11-25 23:35:20 +08:00
|
|
|
|
public NumberTc numberTc;
|
2024-11-26 21:16:12 +08:00
|
|
|
|
BuyGoodIdResponse buyGoodIdResponse = new BuyGoodIdResponse();
|
|
|
|
|
BuyGoodId42 buyGoodId42 = new BuyGoodId42();
|
2024-11-25 22:58:30 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
CancleBtn.onClick.AddListener(CanclePanel);
|
|
|
|
|
ConfirmBtn.onClick.AddListener(ConfirmBuy);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CanclePanel()
|
|
|
|
|
{
|
2024-11-26 21:16:12 +08:00
|
|
|
|
Destroy(this.gameObject);
|
2024-11-25 22:58:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-26 21:16:12 +08:00
|
|
|
|
async void ConfirmBuy()
|
2024-11-25 22:58:30 +08:00
|
|
|
|
{
|
2024-11-26 21:16:12 +08:00
|
|
|
|
//string pricetext = numberTc.price.text;
|
|
|
|
|
buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id);
|
|
|
|
|
Debug.Log(buyGoodIdResponse);
|
|
|
|
|
numberTc.musk_show();
|
|
|
|
|
Destroy(this.gameObject);
|
|
|
|
|
//Debug.Log("<22><><EFBFBD><EFBFBD><EFBFBD>ϿDz<CFBF><C7B2><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD>");
|
2024-11-25 22:58:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
2024-11-26 21:16:12 +08:00
|
|
|
|
|
2024-11-25 22:58:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|