[Fix] Refactor project

This commit is contained in:
2026-03-02 12:49:12 +07:00
parent f65976796d
commit f52131f755
44 changed files with 449 additions and 404 deletions
+3 -3
View File
@@ -62,7 +62,7 @@ namespace YachtDice.Game
{
_diceManager.OnAllDiceSettled -= HandleAllDiceSettled;
int[] values = _diceManager.GetCurrentValues();
var values = _diceManager.GetCurrentValues();
Debug.Log($"Roll {CurrentRoll}/{maxRollsPerTurn} | Dice: [{string.Join(", ", values)}]");
OnRollComplete?.Invoke(CurrentRoll);
@@ -74,7 +74,7 @@ namespace YachtDice.Game
if (CurrentRoll == 0) return;
_diceManager.ToggleLock(index);
bool isLocked = _diceManager.IsLocked(index);
var isLocked = _diceManager.IsLocked(index);
Debug.Log($"Dice {index + 1} (value={_diceManager.GetValue(index)}): {(isLocked ? "LOCKED" : "UNLOCKED")}");
}
@@ -94,7 +94,7 @@ namespace YachtDice.Game
if (_scoringSystem.IsComplete)
{
int total = _scoringSystem.TotalScore;
var total = _scoringSystem.TotalScore;
Debug.Log($"*** GAME OVER *** Total Score: {total}");
OnGameOver?.Invoke(total);
}