|
@@ -45,12 +45,14 @@ namespace GFGGame
|
|
|
{
|
|
|
base.AddEventListener();
|
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateItem);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.EXCHANGE_SUCCESS, ShowTips);
|
|
|
}
|
|
|
|
|
|
protected override void RemoveEventListener()
|
|
|
{
|
|
|
base.RemoveEventListener();
|
|
|
EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateItem);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.EXCHANGE_SUCCESS, ShowTips);
|
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
@@ -177,5 +179,9 @@ namespace GFGGame
|
|
|
_ui.m_txtHasNum.text = "ÒÑÓµÓÐ:" + hasNum;
|
|
|
_ui.m_listConsume.numItems = itemCfg.param1Arr.Length;
|
|
|
}
|
|
|
+ private void ShowTips()
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("¶Ò»»³É¹¦");
|
|
|
+ }
|
|
|
}
|
|
|
}
|