modesttree/Zenject — pull request #28 by darl2ng (2014-11-21 09:46:37+00:00)
Title: Add static CodeInstallers so we can programmatically create the whole Ze...

...nject context

I'm sure there must be better ways to do this. I'm new to this stuff so here what I do:

GameObject game = new GameObject(ZENJECT_GO);
NetworkInstaller networkInstaller = (NetworkInstaller)game.AddComponent(typeof(NetworkInstaller));
List list = new List();
list.Add(networkInstaller);
CompositionRoot.CodeInstallers=list.ToArray();
game.AddComponent(typeof(CompositionRoot));