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/Main/MainWin.cs | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/Main/System/Main/MainWin.cs b/Main/System/Main/MainWin.cs
index 5ebb182..5177284 100644
--- a/Main/System/Main/MainWin.cs
+++ b/Main/System/Main/MainWin.cs
@@ -40,10 +40,13 @@
protected override void InitComponent()
{
base.InitComponent();
- avatarCell.redpoint.redpointId = MainRedDot.PhantasmPavilionRepoint;
- avatarCell.SetListener(() =>
+ avatarCell.SetOnLoaded(() =>
{
- UIManager.Instance.OpenWindow<PlayerProfileWin>();
+ avatarCell.redpoint.redpointId = MainRedDot.PhantasmPavilionRepoint;
+ avatarCell.SetListener(() =>
+ {
+ UIManager.Instance.OpenWindowAsync<PlayerProfileWin>().Forget();
+ });
});
}
@@ -250,7 +253,7 @@
else if (index == 4 && !PlayerDatas.Instance.fairyData.HasFairy)
{
//鏈姞鍏ュ叕浼氫笉鍒囨崲鏍囩锛屾墦寮�鐢宠鐣岄潰
- UIManager.Instance.OpenWindow<GuildJoinWin>();
+ UIManager.Instance.OpenWindowAsync<GuildJoinWin>().Forget();
return;
}
@@ -263,7 +266,7 @@
if (index == 3)
{
//鎸戞垬鐗规畩鏄剧ず閫昏緫
- UIManager.Instance.OpenWindow<ChallengeTabWin>();
+ UIManager.Instance.OpenWindowAsync<ChallengeTabWin>().Forget();
return;
}
@@ -304,18 +307,18 @@
// 鎵撳紑涓婚〉鐣岄潰
if (!UIManager.Instance.IsOpened<BattleWin>())
{
- BattleWin battleWin = UIManager.Instance.OpenWindow<BattleWin>();
- battleWin.SetBattleField(BattleManager.Instance.storyBattleField);
+ UIManager.Instance.OpenWindowAsync<BattleWin>().ContinueWith(battleWin =>
+ battleWin.SetBattleField(BattleManager.Instance.storyBattleField)).Forget();
}
else
{
BattleWin battleWin = UIManager.Instance.GetUI<BattleWin>();
battleWin.SetBattleField(BattleManager.Instance.storyBattleField);
}
- currentSubUI = UIManager.Instance.OpenWindow<HomeWin>();
+ UIManager.Instance.OpenWindowAsync<HomeWin>().ContinueWith(w => currentSubUI = w).Forget();
break;
case 1:
- currentSubUI = UIManager.Instance.OpenWindow<AffairBaseWin>();
+ UIManager.Instance.OpenWindowAsync<AffairBaseWin>().ContinueWith(w => currentSubUI = w).Forget();
break;
case 2:
if (gameTip.gameObject.activeSelf)
@@ -325,14 +328,14 @@
HappyXBModel.Instance.startTenCallGuide = true;
}
}
- currentSubUI = UIManager.Instance.OpenWindow<HeroBaseWin>(0);
+ UIManager.Instance.OpenWindowAsync<HeroBaseWin>(0).ContinueWith(w => currentSubUI = w).Forget();
break;
// case 3:
// 鎸戞垬鐣岄潰涓嶈烦杞�
// Debug.Log("鎵撳紑鎸戞垬鐣岄潰");
// break;
case 4:
- currentSubUI = UIManager.Instance.OpenWindow<GuildBaseWin>();
+ UIManager.Instance.OpenWindowAsync<GuildBaseWin>().ContinueWith(w => currentSubUI = w).Forget();
break;
default:
Debug.LogWarning("鏈煡鐨勬爣绛剧储寮�: " + functionOrder);
--
Gitblit v1.8.0