New issue
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some Style question I guess? #1057
Comments
Hi, do you have some links to examples that you mean? |
Yes sir. What I mean is why you guys prefer caching context and group in the constructor?
|
You can use both directly in the execute if you want and in some cases this can be better, e.g. when your game support some sort of soft-reboot where contexts re-created. However, for me that's never the case and by caching the groups you basically avoid a dictionary lookup. References to groups like |
Take some times ues the amazing project, great works! 馃槅
Just wondering, why in the tutorial and samples, author prefer to cache the context reference in the system but not use the Contexts.sharedInstance? It might be trivial, just curious.
The text was updated successfully, but these errors were encountered: