yyl
2026-03-26 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7
Main/System/Store/StoreBaseWin.cs
@@ -1,21 +1,22 @@
using System.Collections.Generic;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Cysharp.Threading.Tasks;
public class StoreBaseWin : OneLevelWin
{
    protected override void OpenSubUIByTabIndex()
    protected override async void OpenSubUIByTabIndex()
    {
        switch (functionOrder)
        {
            case 0:
                UIManager.Instance.OpenWindowAsync<StoreWin>().ContinueWith(w => currentSubUI = w).Forget();
                currentSubUI = await UIManager.Instance.OpenWindowAsync<StoreWin>();
                break;
            case 1:
                // 充值界面
                UIManager.Instance.OpenWindowAsync<RechargeWin>().ContinueWith(w => currentSubUI = w).Forget();
                currentSubUI = await UIManager.Instance.OpenWindowAsync<RechargeWin>();
                break;
            default:
                Debug.LogWarning("未知的标签索引: " + functionOrder);