Implement L and T Shapes
This commit is contained in:
@@ -183,10 +183,10 @@ namespace Services {
|
||||
private async UniTask DestroyMatchesAsync(List<Vector2Int> protectedPositions) {
|
||||
List<Vector2Int> matchPositions = new List<Vector2Int>(this.matchService.CurrentMatches.Count);
|
||||
for (int i = 0; i < this.matchService.CurrentMatches.Count; i++) {
|
||||
var m = this.matchService.CurrentMatches[i];
|
||||
if (m == null) continue;
|
||||
Gem match = this.matchService.CurrentMatches[i];
|
||||
if (match == null) continue;
|
||||
|
||||
Vector2Int pos = m.Position;
|
||||
Vector2Int pos = match.Position;
|
||||
if (protectedPositions != null && protectedPositions.Contains(pos))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user