We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider letting GameScene and GameObject know when child objects are added/removed. Also allow for objects to know when they have been added/removed.
GameScene
GameObject
And finally GameScene should know when it is loaded/unloaded.
Something like:
public class GameScene { public void OnGameObjectAdded(IGameObject gameObject); public void OnGameObjectRemoved(IGameObject gameObject); public void OnLoaded(); public void OnUnloaded(); }
public class GameObject { public void OnGameObjectAdded(IGameObject gameObject); public void OnGameObjectRemoved(IGameObject gameObject); public void OnAdded(); // TODO: Parent? public void OnRemoved(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider letting
GameScene
andGameObject
know when child objects are added/removed. Also allow for objects to know when they have been added/removed.And finally
GameScene
should know when it is loaded/unloaded.Something like:
The text was updated successfully, but these errors were encountered: