Files
5.24BuYu/Assets/MyGame/aa/UI/Home/Sub/UIHome_BY_MonthCardPanel.cs
T
2026-06-02 14:57:23 +08:00

42 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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> 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()
{
}
}