Improved scene transitions

This commit is contained in:
2026-01-23 10:02:19 +00:00
parent da44701599
commit a71f852243

View File

@@ -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;
}