Deleted

deleted
aaaaaaaaaaaa

2 Likes

Just a polite observation: your UI screens should probably be app states. (Then I think 90% of what you’ve written is maybe already taken care of.)

aa

Yeah, but this is only a few lines in an app state that extends BaseAppState. Create what you need in initialize(), attach it to the application’s root nodes in onEnabled(), removeFromParent() in onDisabled().

There was never a reason to do that. AppStates already give you the application and you can use that to attach/detach your local root node.