Improved scene transitions
This commit is contained in:
@@ -61,7 +61,7 @@ namespace InterfaceOff
|
|||||||
ImageRectOverlay.rotation = Quaternion.Euler(
|
ImageRectOverlay.rotation = Quaternion.Euler(
|
||||||
0f, 0f, Mathf.Lerp(startRotation, expandRotation, t));
|
0f, 0f, Mathf.Lerp(startRotation, expandRotation, t));
|
||||||
|
|
||||||
t += Time.unscaledDeltaTime;
|
t += Time.deltaTime * 2;
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,6 +69,7 @@ namespace InterfaceOff
|
|||||||
ImageRectOverlay.rotation = Quaternion.Euler(0f, 0f, expandRotation);
|
ImageRectOverlay.rotation = Quaternion.Euler(0f, 0f, expandRotation);
|
||||||
|
|
||||||
loadAction?.Invoke();
|
loadAction?.Invoke();
|
||||||
|
yield return new WaitForSeconds(0.2f);
|
||||||
|
|
||||||
t = 0f;
|
t = 0f;
|
||||||
|
|
||||||
@@ -78,7 +79,7 @@ namespace InterfaceOff
|
|||||||
ImageRectOverlay.rotation = Quaternion.Euler(
|
ImageRectOverlay.rotation = Quaternion.Euler(
|
||||||
0f, 0f, Mathf.Lerp(expandRotation, shrinkRotation, t));
|
0f, 0f, Mathf.Lerp(expandRotation, shrinkRotation, t));
|
||||||
|
|
||||||
t += Time.unscaledDeltaTime;
|
t += Time.deltaTime * 2;
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user