结算流程调整

This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-16 18:46:07 +08:00
parent ae4257a0a4
commit 714f180c9e
3 changed files with 18 additions and 6 deletions

View File

@ -42,12 +42,20 @@ namespace GameLogic
private Dictionary<string, List<Buff>> m_Buffs = new Dictionary<string, List<Buff>>(); //自身Buff列表
private int timerId = -1;
protected override void OnCreate()
{
base.OnCreate();
GameModule.Timer.AddTimer(TimerHandler, 0.01f, true);
timerId = GameModule.Timer.AddTimer(TimerHandler, 0.01f, true);
}
protected override void OnDestroy()
{
base.OnDestroy();
GameModule.Timer.RemoveTimer(timerId);
}
private void TimerHandler(object[] e)
@ -389,6 +397,11 @@ namespace GameLogic
private void LoadTextureMatRes(int key)
{
if (this.gameObject == null)
{
return;
}
// 先隐藏其他
for (int i = 1; i < m_rectCar.childCount; i++)
{

View File

@ -908,6 +908,7 @@ namespace GameLogic
m_TeamSortList.Clear();
m_DicTeamList.Clear();

View File

@ -70,16 +70,14 @@ namespace GameLogic
m_loopListView_View.RefreshAllShownItem();
}
protected override void Close()
protected override void OnDestroy()
{
base.Close();
base.OnDestroy();
Log.Debug("UIGameRankForm Close");
DataGameSceneManager.Instance.OnRestData();
}
LoopListViewItem OnGetItemByIndex(LoopListView listView, int index)
{
if (index >= m_PlayRankDatas.Count)