[Refactor] Fix GameController
This commit is contained in:
1 parent
244f635062
commit
3031d2e4c2
24 files changed
+708
-303
No files matched your search
@@ -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