using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Nice_numPanel : MonoBehaviour { public Button CancleBtn; public Button ConfirmBtn; public NumberTc numberTc; BuyGoodIdResponse buyGoodIdResponse = new BuyGoodIdResponse(); BuyGoodId42 buyGoodId42 = new BuyGoodId42(); // Start is called before the first frame update void Start() { CancleBtn.onClick.AddListener(CanclePanel); ConfirmBtn.onClick.AddListener(ConfirmBuy); } void CanclePanel() { Destroy(this.gameObject); } async void ConfirmBuy() { //string pricetext = numberTc.price.text; buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id); Debug.Log(buyGoodIdResponse); numberTc.musk_show(); Destroy(this.gameObject); //Debug.Log("µ¯³öÎϿDz»×ãµÄµ¯´°"); } // Update is called once per frame void Update() { } }