This commit is contained in:
2025-12-17 00:55:30 +08:00
parent 85b9767201
commit 3786863b00
13 changed files with 37 additions and 73 deletions

View File

@@ -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);