mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[DesktopVRSwitch] Further cleanup
This commit is contained in:
parent
6774c3ff6d
commit
f89a41772b
5 changed files with 14 additions and 23 deletions
|
@ -35,7 +35,7 @@ public class MovementSystemTracker : VRModeTracker
|
|||
MovementSystem.Instance.ChangeCrouch(false);
|
||||
MovementSystem.Instance.ChangeProne(false);
|
||||
MovementSystem.Instance.SetImmobilized(true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void OnFailedSwitch(bool intoVR)
|
||||
|
@ -50,7 +50,7 @@ public class MovementSystemTracker : VRModeTracker
|
|||
// Lazy
|
||||
MelonLoader.MelonCoroutines.Start(TeleportFrameAfter(intoVR));
|
||||
}
|
||||
|
||||
|
||||
private IEnumerator TeleportFrameAfter(bool intoVR)
|
||||
{
|
||||
yield return null; // need to wait a frame
|
||||
|
@ -66,7 +66,7 @@ public class MovementSystemTracker : VRModeTracker
|
|||
MovementSystem.Instance.ChangeCrouch(false);
|
||||
MovementSystem.Instance.ChangeProne(false);
|
||||
MovementSystem.Instance.SetImmobilized(false);
|
||||
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue