Adjust Timings

This commit is contained in:
2025-12-16 19:53:04 +08:00
parent 7224da5fce
commit b97a9e73d8
3 changed files with 73 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ namespace Services {
// remove existing gem/view at that position
DestroyMatchedGems(position);
GemView gemView = this.objectPool.Get(GemType.Bomb, position, this.gameVariables.dropHeight);
GemView gemView = this.objectPool.Get(GemType.Bomb, position, 0);
gemView.name = "Gem - " + position.x + ", " + position.y + ' ' + GemType.Bomb;
int scoreValue = GemUtils.GetGemValues(color, this.gameVariables.gemsPrefabs).scoreValue;
@@ -258,18 +258,18 @@ namespace Services {
}
private async UniTask FillBoard() {
await UniTask.Delay(5);
await UniTask.Delay(250);
RefillBoard();
await UniTask.Delay(5);
await UniTask.Delay(600);
this.matchService.FindAllMatches();
if (this.matchService.CurrentMatches.Count > 0) {
await UniTask.Delay(5);
await UniTask.Delay(600);
// In cascades, there is no "creating slot" bomb protection.
await DestroyMatchesAsync(new List<Vector2Int>());
} else {
await UniTask.Delay(5);
await UniTask.Delay(250);
this.currentState = GameState.Move;
}
}