[Refactor] Fix GameController
This commit is contained in:
@@ -14,6 +14,7 @@ using YachtDice.Player;
|
||||
using YachtDice.Scoring;
|
||||
using YachtDice.Shop;
|
||||
using YachtDice.UI;
|
||||
using YachtDice.UI.Presentation;
|
||||
|
||||
namespace YachtDice.DI
|
||||
{
|
||||
@@ -61,6 +62,10 @@ namespace YachtDice.DI
|
||||
// Shop
|
||||
builder.Register<ShopModel>(Lifetime.Singleton);
|
||||
|
||||
// Presentation services
|
||||
builder.Register<IGameSaveService, GameSaveService>(Lifetime.Singleton);
|
||||
builder.Register<IScoreSummaryService, ScoreSummaryService>(Lifetime.Singleton);
|
||||
|
||||
// Scene MonoBehaviour components
|
||||
builder.RegisterComponent(scoringSystem);
|
||||
builder.RegisterComponent(currencyBank);
|
||||
|
||||
Reference in New Issue
Block a user