Browse Source

卡牌获取升星资源后未及时刷新

zhaoyang 3 years ago
parent
commit
122e77fe8a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -88,6 +88,11 @@ namespace GFGGame
             });
             });
 
 
             EventAgent.AddEventListener(ConstMessage.CARD_UP_SKILL, UpSkill);
             EventAgent.AddEventListener(ConstMessage.CARD_UP_SKILL, UpSkill);
+            EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, () =>
+            {
+                UpdateUpLvView();
+                UpdateUpStarView();
+            });
 
 
         }
         }
 
 
@@ -103,7 +108,6 @@ namespace GFGGame
             this.UpdateCardRes();
             this.UpdateCardRes();
             this.UpdateUpLvView();
             this.UpdateUpLvView();
             _comFosterBottom.m_ctrlTab.selectedIndex = this._selectTab;
             _comFosterBottom.m_ctrlTab.selectedIndex = this._selectTab;
-            EventAgent.AddEventListener(ConstMessage.MONEY_CHANGE, UpdateUpStarView);
             GuideController.TryGuideCardFosterViewBtnStar(_ui.m_ComFosterBottom.m_btnStar);
             GuideController.TryGuideCardFosterViewBtnStar(_ui.m_ComFosterBottom.m_btnStar);
         }
         }