Improved scene transitions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user