This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-16 03:24:01 +08:00
parent a1693dd959
commit 4f51fce27a

View File

@ -906,17 +906,18 @@ namespace GameLogic
WinAllValue = 0;
ScoreAllValue = 0;
// // 重置基地数据
// foreach (var item in m_TeamLists)
// {
// item.Value.OnDestroy();
// }
// m_TeamLists.Clear();
// m_TeamSortList.Clear();
m_TeamSortList.Clear();
// 重新执行初始化数据流程
OnInit();
// 重新打开UI界面
GameModule.UI.CloseUI<UIGameBattle>();
GameModule.UI.ShowUI<UIGameBattle>();
// 重置UI数据
GameEvent.Send(EventConts.RestGameBattle);
}
@ -1000,13 +1001,7 @@ namespace GameLogic
// 重置玩家数据
m_DicUnitPlayerDatas.Clear();
// // 重置基地数据
// foreach (var item in m_TeamLists)
// {
// item.Value.OnDestroy();
// }
// m_TeamLists.Clear();
// m_TeamSortList.Clear();
m_TeamSortList.Clear();
m_GiftItemDatas.Clear();
m_VipItemDatas.Clear();
}