|
@@ -104,7 +104,8 @@ namespace GFGGame
|
|
|
_ui.m_listSkill.numItems = skillCfgs.Count;
|
|
|
_ui.m_comSkillTips.target.visible = false;
|
|
|
_selectedIndex = index;
|
|
|
- _ui.m_listCard.GetChildAt(index).asCom.AddChild(_comSelected);
|
|
|
+ int childIndex = _ui.m_listCard.ItemIndexToChildIndex(index);
|
|
|
+ _ui.m_listCard.GetChildAt(childIndex).asCom.AddChild(_comSelected);
|
|
|
}
|
|
|
private void RenderListSkillItem(int index, GObject obj)
|
|
|
{
|