12345678910111213141516171819202122 |
- using FL.FGUI;
- using XGame.Framework.Nodes;
- namespace FL.Nodes.Shop
- {
- public class UIComponent : NodeComponent
- {
- public override void OnEnable(object intent)
- {
- Context.AddListener(EventDefine.OpenShopUI, OpenShopUI);
- }
- public override void OnDisable()
- {
- Context.RemoveListener(EventDefine.OpenShopUI, OpenShopUI);
- }
- private void OpenShopUI(int eventId, object args)
- {
- Context.UI.OpenAsync(UIKeys.ShopShopMain);
- }
- }
- }
|