Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
 private void Awake()
 {
     if (DependencyContainer.Resolve <ObjectPool>() != null)
     {
         return;
     }
     DontDestroyOnLoad(this.gameObject);
     DependencyContainer.Add <ObjectPool>(this);
     _pool = new Dictionary <Item, List <Item> >();
     PrewarmPool();
 }