Код: Выделить всё
private void PlayerBindings()
{
_player = Container.InstantiatePrefabForComponent
(_playerGameObject,
_playerSpawn.position,
Quaternion.identity, null);
Container.Bind().AsSingle();
Container.Bind().FromInstance(_player).AsSingle();
Container.Bind().AsSingle();
}
Ошибки zenject
возникает та же ошибка, даже если я делаю это так:
Код: Выделить всё
private void PlayerBindings()
{
Container.Bind
().AsSingle();
Container.Bind().AsSingle();
_player = Container.InstantiatePrefabForComponent(_playerGameObject,
_playerSpawn.position,
Quaternion.identity, null);
Container.Bind().FromInstance(_player).AsSingle();
}
Код: Выделить всё
PlayerControllerПодробнее здесь: https://stackoverflow.com/questions/792 ... th-zenject
Мобильная версия