UIComponent.cs 396 B

12345678910111213141516
  1. using XGame.Framework.Nodes;
  2. namespace FL.Nodes.GameMain
  3. {
  4. public class UIComponent : NodeComponent
  5. {
  6. public override void OnEnable(object intent)
  7. {
  8. Context.UI.OpenAsync(FGUI.UIKeys.MainHomePanel, "打开MainHomePanel");
  9. }
  10. public override void OnDisable()
  11. {
  12. Context.UI.Close(FGUI.UIKeys.MainHomePanel);
  13. }
  14. }
  15. }