using this kind of contstruction:
Container.Bind<Freeman>()
.FromMethod(_ => { return Container.InstantiatePrefabForComponent<Freeman>(freemanPrefab); })
.AsTransient()
.OnInstantiated<Freeman>((injCtx, freeman) =>
{
Debug.Log(freeman.name);
});
The Debug.Log never works meaning the OnInstantiated never being called. Why is that?