AppComponent.cs 353 B

12345678910111213141516
  1. using XGame.Framework.Nodes;
  2. namespace FL.Nodes
  3. {
  4. public class AppComponent : NodeComponent
  5. {
  6. public override void OnEnable(object intent)
  7. {
  8. Context.Tree.AddAsync(NodeKeys.GameMain);
  9. }
  10. public override void OnDisable()
  11. {
  12. Context.Tree.Remove(NodeKeys.GameMain);
  13. }
  14. }
  15. }