mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] Fixes for 2023r171
This commit is contained in:
parent
ba6a5f4778
commit
be82bf228c
12 changed files with 61 additions and 129 deletions
|
@ -3,12 +3,12 @@ using UnityEngine;
|
|||
|
||||
namespace NAK.DesktopVRSwitch;
|
||||
|
||||
class VRModeSwitchDebugger : MonoBehaviour
|
||||
internal class VRModeSwitchDebugger : MonoBehaviour
|
||||
{
|
||||
Coroutine _switchCoroutine;
|
||||
WaitForSeconds _sleep;
|
||||
private Coroutine _switchCoroutine;
|
||||
private WaitForSeconds _sleep;
|
||||
|
||||
void OnEnable()
|
||||
private void OnEnable()
|
||||
{
|
||||
if (_switchCoroutine == null)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class VRModeSwitchDebugger : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
private void OnDisable()
|
||||
{
|
||||
if (_switchCoroutine != null)
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ class VRModeSwitchDebugger : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
IEnumerator SwitchLoop()
|
||||
private IEnumerator SwitchLoop()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue