浏览代码

添加购买弹窗切换时关闭

zhangyuqian 1 年之前
父节点
当前提交
257ff7a314
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyConfirmView.cs

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyConfirmView.cs

@@ -35,6 +35,7 @@ namespace GFGGame
         {
             base.AddEventListener();
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateView);
+            EventAgent.AddEventListener(ConstMessage.CLOSE_SHOPPING_TIP, OnClickBtnCancel);
         }
         protected override void OnShown()
         {
@@ -45,6 +46,7 @@ namespace GFGGame
         {
             base.RemoveEventListener();
             EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateView);
+            EventAgent.RemoveEventListener(ConstMessage.CLOSE_SHOPPING_TIP, OnClickBtnCancel);
         }
         private void UpdateView()
         {