From a71f852243aaceb165422b885f440690d6d5455f Mon Sep 17 00:00:00 2001 From: Pasha Date: Fri, 23 Jan 2026 10:02:19 +0000 Subject: [PATCH] Improved scene transitions --- Assets/Scripts/SceneController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/SceneController.cs b/Assets/Scripts/SceneController.cs index 870edbc..6333cd5 100644 --- a/Assets/Scripts/SceneController.cs +++ b/Assets/Scripts/SceneController.cs @@ -61,7 +61,7 @@ namespace InterfaceOff ImageRectOverlay.rotation = Quaternion.Euler( 0f, 0f, Mathf.Lerp(startRotation, expandRotation, t)); - t += Time.unscaledDeltaTime; + t += Time.deltaTime * 2; yield return null; } @@ -69,6 +69,7 @@ namespace InterfaceOff ImageRectOverlay.rotation = Quaternion.Euler(0f, 0f, expandRotation); loadAction?.Invoke(); + yield return new WaitForSeconds(0.2f); t = 0f; @@ -78,7 +79,7 @@ namespace InterfaceOff ImageRectOverlay.rotation = Quaternion.Euler( 0f, 0f, Mathf.Lerp(expandRotation, shrinkRotation, t)); - t += Time.unscaledDeltaTime; + t += Time.deltaTime * 2; yield return null; }