From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)
---
Main/System/HeroUI/HeroCollectionWin.cs | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/Main/System/HeroUI/HeroCollectionWin.cs b/Main/System/HeroUI/HeroCollectionWin.cs
index 16a2331..9c69e79 100644
--- a/Main/System/HeroUI/HeroCollectionWin.cs
+++ b/Main/System/HeroUI/HeroCollectionWin.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
@@ -26,15 +27,13 @@
{
SmallTipWin.worldPos = CameraManager.uiCamera.ScreenToWorldPoint(Input.mousePosition);
SmallTipWin.showText = Language.Get("herocard6");
- UIManager.Instance.OpenWindow<SmallTipWin>();
+ UIManager.Instance.OpenWindowAsync<SmallTipWin>().Forget();
});
heroPackBtn.AddListener(() =>
{
HeroUIManager.Instance.QueryUnLockHeroPack();
});
-
- fiterManager = HeroSelectBehaviour.Create(heroSelectBehaviour);
}
protected override void OnPreOpen()
@@ -60,7 +59,26 @@
void Display()
{
- fiterManager.Display(0, SelectJobCountry);
+ if (null != fiterManager)
+ {
+ fiterManager.Display(0, SelectJobCountry);
+ }
+ else
+ {
+ HeroSelectBehaviour.Create(heroSelectBehaviour).ContinueWith(fmgr =>
+ {
+ if (this == null)
+ {
+ if (fmgr != null)
+ {
+ GameObject.DestroyImmediate(fmgr.gameObject);
+ }
+ return;
+ }
+ fiterManager = fmgr;
+ fiterManager.Display(0, SelectJobCountry);
+ }).Forget();
+ }
// CreateScroller();
// RefreshTotalAttr();
--
Gitblit v1.8.0