Fix Object Instantiating

This commit is contained in:
2025-12-14 10:59:21 +08:00
parent 6fe70bd113
commit 6abccbe6d8
21 changed files with 371 additions and 180 deletions

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using Enums;
using Models.Interfaces;
using Services.Interfaces;
using UnityEngine;
@@ -9,9 +10,9 @@ namespace Services {
private List<Gem> currentMatches = new List<Gem>();
public List<Gem> CurrentMatches => this.currentMatches;
private GameBoard gameBoard;
private IGameBoard gameBoard;
public MatchService(GameBoard gameBoard) {
public MatchService(IGameBoard gameBoard) {
this.gameBoard = gameBoard;
}