[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
@@ -103,8 +103,8 @@ namespace YachtDice.Dice
yield return new WaitForSeconds(0.2f);
// ── 4. Ждём пока кубик успокоится ───────────────────────────
float stillTimer = 0f;
float sqrThreshold = settleSpeed * settleSpeed;
var stillTimer = 0f;
var sqrThreshold = settleSpeed * settleSpeed;
while (stillTimer < settleDelay)
{
@@ -138,7 +138,7 @@ namespace YachtDice.Dice
// Откатываемся обратно — будем интерполировать
transform.rotation = startRot;
float elapsed = 0f;
var elapsed = 0f;
while (elapsed < snapDuration)
{
elapsed += Time.deltaTime;