|
@@ -132,7 +132,6 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateView(int index)
|
|
|
{
|
|
|
-
|
|
|
// CardData cardData = cardList[index];
|
|
|
_ui.m_loaScore.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + _scoreType);
|
|
|
int cardId;
|
|
@@ -171,9 +170,7 @@ namespace GFGGame
|
|
|
item.m_txtLv.text = SkillDataManager.Instance
|
|
|
.GetCardSkillLv(skillCfgs[index].cardId, skillCfgs[index].skillId).ToString();
|
|
|
if (item.target.data == null)
|
|
|
- {
|
|
|
item.target.onClick.Add(OnSkillItemClick);
|
|
|
- }
|
|
|
|
|
|
item.target.data = index; // skillCfgs[index];
|
|
|
UI_ListCardSkillItem.ProxyEnd();
|
|
@@ -233,6 +230,11 @@ namespace GFGGame
|
|
|
// _effects.Add(_effectUI);
|
|
|
}
|
|
|
|
|
|
+ item.target.asCom.RemoveChild(_comSelected);
|
|
|
+ if (_selectedIndex == index) {
|
|
|
+ item.target.asCom.AddChild(_comSelected);
|
|
|
+ }
|
|
|
+
|
|
|
UI_ListCardFightItem.ProxyEnd();
|
|
|
// UI_ComStar.ProxyEnd();
|
|
|
}
|