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
In GameObjectContext class we have such lines to initialize the kernel when GOC creates dynamically.
if (gameObject.scene.isLoaded && !_container.IsValidating) { _kernel = _container.Resolve<MonoKernel>(); _kernel.Initialize(); }
But it works wrong when SceneContext runs manual (toggled of AutoRun) - GOC initializes before SceneContext.
I fixed this problem like this
var sceneContext = _parentContainer.Resolve<SceneContext>(); if (gameObject.scene.isLoaded && !_container.IsValidating && sceneContext.Initialized) { _kernel = _container.Resolve<MonoKernel>(); _kernel.Initialize(); }
Would be great if you add this to the main code or offer a better solution.
Cheers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In GameObjectContext class we have such lines to initialize the kernel when GOC creates dynamically.
But it works wrong when SceneContext runs manual (toggled of AutoRun) - GOC initializes before SceneContext.
I fixed this problem like this
Would be great if you add this to the main code or offer a better solution.
Cheers.
The text was updated successfully, but these errors were encountered: