fix(fix): 调整对话气泡加载时机与销售态槽位优先级

Enter 中先 LoadBubbles 再 SwitchCamera,避免 me: 释放log 时找不到 Player 槽位。
SalesState 中优先使用 salesManager.bubbleSlotGroup,缺失时回退 ScreenSystem。

Made-with: Cursor
This commit is contained in:
2026-03-12 15:24:46 +08:00
parent faa14386f5
commit 0bcdcba8a1
3 changed files with 102 additions and 4 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
@@ -55,6 +55,11 @@ namespace AibisDream
.Select(item => _bubbleFactory.Create(item))
.GroupBy(item => item.Role)
.ToDictionary(group => group.Key, group => group.ToArray());
#if UNITY_EDITOR
var roleSummary = string.Join(", ", _bubbleDict.Select(kv => $"{kv.Key}({kv.Value.Length})"));
Debug.Log($"[BubbleGroup] 已加载 {groupData.dialogViewType}: {roleSummary}", this);
#endif
}
#endregion