This commit is contained in:
2025-12-18 03:49:05 +08:00
parent 668bd03f63
commit 667a39c260
8 changed files with 6 additions and 18 deletions

View File

@@ -4,7 +4,6 @@ using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using Enums;
using Models.Interfaces;
using Structs;
using UnityEngine;
namespace Services.Interfaces

View File

@@ -2,7 +2,6 @@ using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using UnityEngine;
using Enums;
using Structs;
namespace Services.Interfaces {
public interface IMatchService {

View File

@@ -1,24 +1,18 @@
using Presenter;
using Services.Interfaces;
using UnityEngine;
using VContainer.Unity;
using Views;
namespace Services
{
public class LevelEntryPoint : IStartable
{
private readonly IObjectPool<GemView> gemViewPool;
private readonly IGameBoardService gameBoardService;
private readonly IInputService inputService;
private readonly AudioPresenter audioPresenter;
public LevelEntryPoint(IObjectPool<GemView> gemViewPool, IGameBoardService gameBoardService, IInputService inputService, AudioPresenter audioPresenter)
public LevelEntryPoint(IGameBoardService gameBoardService, IInputService inputService)
{
this.gemViewPool = gemViewPool;
this.gameBoardService = gameBoardService;
this.inputService = inputService;
this.audioPresenter = audioPresenter;
}
public void Start()

View File

@@ -4,7 +4,6 @@ using Cysharp.Threading.Tasks;
using Enums;
using Models.Interfaces;
using Services.Interfaces;
using Structs;
using UnityEngine;
namespace Services {

View File

@@ -1,10 +1,9 @@
using System;
using Services.Interfaces;
using UnityEngine;
namespace Services {
public class ScoreService : IScoreService {
private int score = 0;
private int score;
public int Score => this.score;
public event Action<int> OnScoreChanged;
public void AddScore(int value) {