fix init list

This commit is contained in:
NguyenVanDat
2026-05-31 17:16:38 +07:00
parent c4b9320b3c
commit 1ae540c872
2 changed files with 9 additions and 5 deletions
@@ -58,7 +58,7 @@ MonoBehaviour:
m_ContentStateBuildPathProfileVariableName: <default settings path>
m_CustomContentStateBuildPath:
m_ContentStateBuildPath:
m_BuildAddressablesWithPlayerBuild: 0
m_BuildAddressablesWithPlayerBuild: 2
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
m_GroupAssets:
- {fileID: 11400000, guid: c99cbfd356e4d487b8da3554688ea241, type: 2}
@@ -27,9 +27,9 @@ namespace BrewMonster.UI
[Header("State")]
[SerializeField] private bool m_isEvil;
private readonly Dictionary<int, AUISubDialog> m_rankSubDialogs = new();
private readonly List<CDlgSkillSubListItem> m_skillSubDialogs = new();
private readonly Dictionary<int, CDlgSkillSubListItem> m_skillSubDialogsMap = new();
private Dictionary<int, AUISubDialog> m_rankSubDialogs ;
private List<CDlgSkillSubListItem> m_skillSubDialogs ;
private Dictionary<int, CDlgSkillSubListItem> m_skillSubDialogsMap ;
private int m_skillSubCount; // 当前显示的技能数量 / Current shown skill count
private float m_curBottom; // 当前底部位置 / Current bottom position
@@ -49,6 +49,9 @@ namespace BrewMonster.UI
{
m_contentRoot = transform as RectTransform;
}
m_skillSubDialogsMap = new Dictionary<int, CDlgSkillSubListItem>();
m_skillSubDialogs = new List<CDlgSkillSubListItem>();
m_rankSubDialogs = new Dictionary<int, AUISubDialog>();
EventBus.Subscribe<CECSkillPanelChange>(OnModelChange);
CacheTemplateInfo();
HideTemplates();
@@ -274,9 +277,10 @@ namespace BrewMonster.UI
return;
}
BMLogger.LogError("HoangDEv subListItem before update ");
BMLogger.LogError("HoangDEv subListItem before2 update "+ subListItem);
subListItem.UpdateSkill(skillID);
BMLogger.LogError("HoangDEv subListItem after update ");
BMLogger.LogError("HoangDEv subListItem after update " + subListItem);
subListItem.Show(true);
BMLogger.LogError("HoangDEv subListItem true");