123456789101112131415161718192021 |
- using FL.FGUI;
- using XGame.Framework.Nodes;
- namespace FL.Nodes
- {
- public class AppComponent : NodeComponent
- {
- public override void OnEnable(object intent)
- {
- Context.Tree.AddAsync(NodeKeys.Network);
- Context.Tree.AddAsync(NodeKeys.Login);
- Context.UI.OpenAsync(UIKeys.CommonToastPanel);
- }
- public override void OnDisable()
- {
- Context.Tree.Remove(NodeKeys.Login, true);
- Context.Tree.Remove(NodeKeys.Network, true);
- Context.UI.Close(UIKeys.CommonToastPanel, true);
- }
- }
- }
|