【m】框架大更新

This commit is contained in:
2025-10-31 11:18:23 +08:00
parent ae6e7c804b
commit 8e1d52ddbf
1883 changed files with 213934 additions and 640 deletions

View File

@@ -116,11 +116,11 @@ namespace Stary.Evo.UIFarme
{
nextPanel = new T();
nextPanel.UIName = panelName;
nextPanel.Initialize(this);
await nextPanel.InitializeAsync(this);
nextPanel.SetPanelParent(parent);
GameObject panelGo = await nextPanel.CreatePanel($"Prefabs_{prefabName}", packageName);
///生成面板后,进行初始化操作
nextPanel.Initialize(panelGo);
await nextPanel.InitializeAsync(panelGo);
dicUI.Add(panelName, nextPanel);
}
else
@@ -160,19 +160,19 @@ namespace Stary.Evo.UIFarme
{
nextPanel = new T();
nextPanel.UIName = panelName;
nextPanel.Initialize(this);
await nextPanel.InitializeAsync(this);
nextPanel.SetPanelParent(parent);
GameObject panelGo = await nextPanel.CreatePanel($"Prefabs_{prefabName}", packageName);
///生成面板后,进行初始化操作
nextPanel.Initialize(panelGo);
await nextPanel.InitializeAsync(panelGo);
dicUI.Add(panelName, nextPanel);
}
else
{
for (int i = 0; i < stackPanel.Count; i++)
foreach (var panel in stackPanel)
{
if (queuePanel[i].GetType().Name == panelName)
if (panel.GetType().Name == panelName)
{
return;
}
@@ -180,7 +180,10 @@ namespace Stary.Evo.UIFarme
nextPanel = dicUI[panelName];
}
if(stackPanel.Count > 0)
{
stackPanel.Peek().OnExit();
}
stackPanel.Push(nextPanel);
nextPanel.OnEnter();
}
@@ -218,7 +221,7 @@ namespace Stary.Evo.UIFarme
if (stackPanel.Count > 0)
{
stackPanel.Peek().OnResume();
stackPanel.Peek().OnEnter();
}
}