mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[DesktopVRSwitch] Added buffer to switch transition to ensure it fully played.
This commit is contained in:
parent
71fa8a9c56
commit
03136cc7d4
1 changed files with 2 additions and 2 deletions
|
@ -109,14 +109,14 @@ public class VRModeSwitchManager : MonoBehaviour
|
|||
{
|
||||
if (WorldTransitionSystem.Instance == null) yield break;
|
||||
WorldTransitionSystem.Instance.StartTransition();
|
||||
yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength);
|
||||
yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength + 0.25f);
|
||||
}
|
||||
|
||||
private IEnumerator ContinueTransition()
|
||||
{
|
||||
if (WorldTransitionSystem.Instance == null) yield break;
|
||||
WorldTransitionSystem.Instance.ContinueTransition();
|
||||
yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength);
|
||||
yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength + 0.25f);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue