2026-02-03 11:35:19 +08:00
|
|
|
|
using Assets.MyGame.Scripts.Net;
|
|
|
|
|
|
using Assets.MyGame.Scripts.Net.APIRequest.Params;
|
|
|
|
|
|
using System.Collections;
|
2025-12-13 18:18:28 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using TMPro;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
2025-12-26 11:15:56 +08:00
|
|
|
|
public class UIHome_BY_MonthCardPanel : SubUIBase
|
2025-12-13 18:18:28 +08:00
|
|
|
|
{
|
|
|
|
|
|
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(() =>
|
|
|
|
|
|
{
|
2026-04-13 18:30:55 +08:00
|
|
|
|
//APIRequestList.BuyMonthCard(new BuyMonthCardParam
|
|
|
|
|
|
//{
|
|
|
|
|
|
// cardType = 1
|
2025-12-13 18:18:28 +08:00
|
|
|
|
|
2026-04-13 18:30:55 +08:00
|
|
|
|
//}, (response) =>
|
|
|
|
|
|
//{
|
|
|
|
|
|
// Debug.Log("购买月卡成功,月卡ID:" + response.cardId + ",名称:" + response.name);
|
|
|
|
|
|
//});
|
2025-12-13 18:18:28 +08:00
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
|
void Start()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
|
void Update()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|