Implement L and T Shapes

This commit is contained in:
2025-12-16 21:44:49 +08:00
parent 9842e7ef3f
commit fffe1987b4
2 changed files with 124 additions and 9 deletions

View File

@@ -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;