Cleanup
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Models;
|
||||
using Models.Interfaces;
|
||||
using Presenter;
|
||||
using ScriptableObjects;
|
||||
@@ -23,14 +22,14 @@ namespace Scopes
|
||||
|
||||
builder.RegisterComponentInHierarchy<ScoreView>();
|
||||
|
||||
builder.Register<IGameBoard>(c =>
|
||||
builder.Register<IGameBoard>(_ =>
|
||||
new GameBoard(this.gameVariables.width, this.gameVariables.height),
|
||||
Lifetime.Scoped);
|
||||
|
||||
builder.Register<IMatchService, MatchService>(Lifetime.Scoped);
|
||||
builder.Register<IScoreService, ScoreService>(Lifetime.Scoped);
|
||||
|
||||
builder.Register<IObjectPool<GemView>>(c =>
|
||||
builder.Register<IObjectPool<GemView>>(_ =>
|
||||
new ObjectPoolService(this.gameVariables.gemsPrefabs, this.gemsHolder),
|
||||
Lifetime.Scoped);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user