using Assets.MyGame.Scripts.Net; using Assets.MyGame.Scripts.Net.APIRequest.Params; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class UIHome_BY_MonthCardPanel : SubUIBase { public Button btn_Open; public TextMeshProUGUI txt_QY; public TextMeshProUGUI txt_Price; [HideInInspector] public List sprite_Prop;//这里后续需要修改为道具基类 public override void Awake() { base.Awake(); btn_Open.onClick.AddListener(() => { //APIRequestList.BuyMonthCard(new BuyMonthCardParam //{ // cardType = 1 //}, (response) => //{ // Debug.Log("购买月卡成功,月卡ID:" + response.cardId + ",名称:" + response.name); //}); }); } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }