|
@@ -96,18 +96,18 @@ namespace GFGGame
|
|
|
|
|
|
//_ui.m_btnUpSkill.onClick.Add(OnClickBtnUpSkill);
|
|
|
|
|
|
- EventAgent.AddEventListener(ConstMessage.PLAT_CARDFOSTER_T1, () =>
|
|
|
- {
|
|
|
- _ui.m_t1.Play();
|
|
|
- });
|
|
|
+ // EventAgent.AddEventListener(ConstMessage.PLAT_CARDFOSTER_T1, () =>
|
|
|
+ // {
|
|
|
+ // _ui.m_t1.Play();
|
|
|
+ // });
|
|
|
|
|
|
- EventAgent.AddEventListener(ConstMessage.CARD_UP_SKILL, UpdateUpSkillView);
|
|
|
}
|
|
|
|
|
|
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
+ // AddEventListener();
|
|
|
// _comLvConsumeGold = UI_ComCostCurrency.Proxy(_comFosterBottom.m_ComLvConsumeGold);
|
|
|
//_comStarCousumeGold = UI_ComCostCurrencyWithHas.Proxy(_comFosterBottom.m_comStarCousumeGold);
|
|
|
|
|
@@ -127,6 +127,11 @@ namespace GFGGame
|
|
|
this.UpdateUpStarView();
|
|
|
this.UpdateUpSkillView();
|
|
|
_comFosterBottom.m_ctrlTab.selectedIndex = this._selectTab;
|
|
|
+
|
|
|
+ }
|
|
|
+ protected override void AddEventListener()
|
|
|
+ {
|
|
|
+ EventAgent.AddEventListener(ConstMessage.CARD_UP_SKILL, UpdateUpSkillView);
|
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateItemChange);
|
|
|
|
|
|
}
|
|
@@ -810,15 +815,19 @@ namespace GFGGame
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
base.OnHide();
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateUpStarView);
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, OnItemChangeListener);
|
|
|
- EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateItemChange);
|
|
|
+
|
|
|
|
|
|
Timers.inst.Remove(OnTimedEvent);
|
|
|
UI_ComCostCurrency.ProxyEnd();
|
|
|
UI_ComCostCurrencyWithHas.ProxyEnd();
|
|
|
_comFosterBottom.m_listLvConsume.numItems = 0;
|
|
|
}
|
|
|
+ protected override void RemoveEventListener()
|
|
|
+ {
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateUpStarView);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, OnItemChangeListener);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateItemChange);
|
|
|
+ }
|
|
|
protected override void UpdateToCheckGuide(object param)
|
|
|
{
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|