this package will help you to inject dependencies into instantiated network objects. you can test this system by opening test scene.
- all network objects that you need to spawn with injection ability must be added into NetworkPrefabsInstaller and removed from default network prefabs list
- spawn network objects with injection ability ONLY USING NetworkManager.SpawnManager.InstantiateAndSpawn() !!! if you just instantiate gameobject and then call spawn injection will not work (idk why =) )
- required zenject, netcode and multiplayer tools installed
- import unitypackage and drag ZenjectInstallers prefab on scene
- create zenject project and scene contexts, create networkmanager
- assign empty default network prefab list to networkmanager
- add every network prefab that you need in NetworkPrefabsInstaller and assign networkmanager
- open DependenciesInstaller script and modify it by adding your own bindings
- now you can [Inject] into instantiated network objects