[Fix] Refactor project
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user