Skip to content

Commit

Permalink
Moved the self injection to after modules are registered
Browse files Browse the repository at this point in the history
  • Loading branch information
grofit committed Sep 4, 2018
1 parent 1d114ca commit 6ae1653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Assets/EcsRx/Zenject/EcsRxApplicationBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ private void Awake()
protected void OnZenjectReady()
{
DependencyContainer = new ZenjectDependencyContainer(_sceneContext.Container);
_sceneContext.Container.Inject(this);
StartApplication();
}

public virtual void StartApplication()
{
RegisterModules();

_sceneContext.Container.Inject(this);
ApplicationStarting();
RegisterAllPluginDependencies();
SetupAllPluginSystems();
Expand Down

0 comments on commit 6ae1653

Please sign in to comment.