From 97c60c0925b282f604ab54ed87e92a3cfc9bbdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C5=A1a=20Ceviel?= Date: Thu, 27 Nov 2025 08:49:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BA=20=D0=BC=D0=B5=D1=80=D0=B4=D0=B6?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Game/CourierOld/Assets/Code/App/BootstrapInstaller.cs | 2 ++ .../CourierOld/Assets/Code/Gameplay/Enemies/EnemyFactory.cs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Game/CourierOld/Assets/Code/App/BootstrapInstaller.cs b/Game/CourierOld/Assets/Code/App/BootstrapInstaller.cs index 0c41e93..7f8baaa 100644 --- a/Game/CourierOld/Assets/Code/App/BootstrapInstaller.cs +++ b/Game/CourierOld/Assets/Code/App/BootstrapInstaller.cs @@ -3,6 +3,7 @@ using Code.Audio; using Code.Configs; using Code.Constants; using Code.Gameplay.Camera; +using Code.Gameplay.Enemies; using Code.Gameplay.Player; using Code.Input; using Code.Scenes; @@ -27,6 +28,7 @@ namespace Code.App containerBuilder.AddSingleton(typeof(InputService), typeof(IInputService)); containerBuilder.AddSingleton(typeof(PlayerFactory), typeof(IPlayerFactory)); + containerBuilder.AddSingleton(typeof(EnemyFactory), typeof(IEnemyFactory)); containerBuilder.AddSingleton(typeof(PlayerProvider), typeof(IPlayerProvider)); InitializeCamera(containerBuilder, staticDataService); diff --git a/Game/CourierOld/Assets/Code/Gameplay/Enemies/EnemyFactory.cs b/Game/CourierOld/Assets/Code/Gameplay/Enemies/EnemyFactory.cs index 980a5a5..0b3f60a 100644 --- a/Game/CourierOld/Assets/Code/Gameplay/Enemies/EnemyFactory.cs +++ b/Game/CourierOld/Assets/Code/Gameplay/Enemies/EnemyFactory.cs @@ -12,9 +12,9 @@ namespace Code.Gameplay.Enemies { public class EnemyFactory : IEnemyFactory { - [Inject] FogConfig _fogConfig; - [Inject] DrunkenGrandpaConfig _drunkenGrandpaConfig; - [Inject] CockroachConfig _cockroachConfig; + [Inject] private FogConfig _fogConfig; + [Inject] private DrunkenGrandpaConfig _drunkenGrandpaConfig; + [Inject] private CockroachConfig _cockroachConfig; public async UniTask CreateEnemy(EnemyType type) {