Closed ManHunterGroms closed 6 years ago
Is it a game object context? What is installing ConcreteCharacterInstaller?
Yes, GameObjectContext. ConcreteCharacterInstaller - is character prefab installer.
So PrefabsPath
has a GameObjectContext on it with another prefab with ConcreteCharacterInstaller on it dragged into the Prefab Installer property? ConcreteCharacterInstaller isn't attached to the same game object as GameObjectContext?
My prefab setup:
I found mistake.
I dont inject CharacterDebug in any scripts, but after added:
[Inject] private CharacterDebug _characterDebug;
into CharacterFacade it works!
But I want only add CharacterDebug to gameObject and Inject dependency (NavMeshAgent and Transform).
Sorry, NoLazy help me. Thank you for help very much!
Oh ok great, was just about to try and reproduce it. NonLazy should have fixed it though
My code:
Character creating from factory (FromComponentInNewPrefabResource):
After creating CharacterDebug no added.