private void RegisterDependencies(DependencyContainer container) { container.Add <GameController>(); container.Add <GameStorage>(); container.Add <LevelManager>(); container.Add <EntitiesStorage>(); container.AddScoped <UserInputMapper>(); container.AddScoped <PlayerService>(); container.AddScoped <NavigationService>(); }
private void Awake() { if (DependencyContainer.Resolve <ObjectPool>() != null) { return; } DontDestroyOnLoad(this.gameObject); DependencyContainer.Add <ObjectPool>(this); _pool = new Dictionary <Item, List <Item> >(); PrewarmPool(); }