Hey guys, I'm stuck on something about Zenject/Extenject. Any one has any idea how I can fix that ?
btw, sorry for filing an issue here, I can't get my answer from anywhere.
I have Player gameObject with Game Object Context which instantiate Character prefab by factory and Charcater has Game Object Context. In CharacterController which is a facade class on Character I instantiate a few Scriptable Objects in this way:
In the Character Installer CharacterBehavior and CharacterPowerup are bound by Container.Bind<CharacterBehaviorContext>().AsSingle().NonLazy(); and Container.Bind<CharacterPowerupContext>().AsSingle().NonLazy();
But the issue is CharacterBehavior and CharacterPowerup are not injected into those Scriptable Objects [Inject] methods.
Hey guys, I'm stuck on something about Zenject/Extenject. Any one has any idea how I can fix that ? btw, sorry for filing an issue here, I can't get my answer from anywhere.
I have
Player
gameObject withGame Object Context
which instantiateCharacter
prefab by factory andCharcater
hasGame Object Context
. InCharacterController
which is a facade class onCharacter
I instantiate a few Scriptable Objects in this way:In the
Character
InstallerCharacterBehavior
andCharacterPowerup
are bound byContainer.Bind<CharacterBehaviorContext>().AsSingle().NonLazy();
andContainer.Bind<CharacterPowerupContext>().AsSingle().NonLazy();
But the issue is
CharacterBehavior
andCharacterPowerup
are not injected into those Scriptable Objects[Inject]
methods.