|
@@ -93,8 +93,7 @@ namespace GFGGame
|
|
|
// _ui.m_loaShow.onClick.Add(OnClickLoaShow);
|
|
|
// _ui.m_btnHide.visible = false;
|
|
|
|
|
|
- EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
|
|
|
- EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
|
|
|
+
|
|
|
// EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdatePartsListSort);
|
|
|
EventAgent.AddEventListener(ConstMessage.CARD_CHOOSE, StartCalculateScore);
|
|
|
_ui.m_partsList2.m_comboBoxRarity.visible = false;
|
|
@@ -103,6 +102,8 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
+ EventAgent.AddEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
|
|
|
InstanceZonesDataManager.usedRecommend = false;
|
|
|
// _ui.m_comboBox.title = "我的套装";
|
|
|
_ui.m_txtRecommendCount.SetVar("v1", "" + GameGlobal.myNumericComponent.GetAsInt(ET.NumericType.RecommendCount)).FlushVars();
|
|
@@ -183,6 +184,8 @@ namespace GFGGame
|
|
|
GameObject.Destroy(_sceneObject);
|
|
|
_sceneObject = null;
|
|
|
}
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.DRESS_FILTER, UpdatePartsListSort);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.DRESS_SEARCH, UpdatePartsListSort);
|
|
|
EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
|
|
|
_fightCfg = null;
|
|
|
_levelCfg = null;
|