Skip to content

Commit

Permalink
Merge pull request #971 from planetarium/improve/input-backspace-in-shop
Browse files Browse the repository at this point in the history
Fix issue that exiting to lobby with backspace in shop
  • Loading branch information
sonohoshi authored Nov 18, 2021
2 parents fc121cf + 90b4564 commit 9ba293f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nekoyume/Assets/_Scripts/UI/Widget/ShopBuy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,8 @@ protected override void Awake()
closeButton.onClick.AddListener(() =>
{
CleanUpWishListAlertPopup(Close);
Game.Event.OnRoomEnter.Invoke(true);
});
CloseWidget = () =>
{
Close();
Game.Event.OnRoomEnter.Invoke(true);
};
CloseWidget = () => CleanUpWishListAlertPopup(Close);
}

public override void Initialize()
Expand Down Expand Up @@ -145,6 +140,7 @@ private void Close()
_npc?.gameObject.SetActive(false);
shopItems.Close();
Find<ItemCountAndPricePopup>().Close();
Game.Event.OnRoomEnter.Invoke(true);
Close(true);
}

Expand Down

0 comments on commit 9ba293f

Please sign in to comment.