mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] More fixes for 2023r171.
This commit is contained in:
parent
9f01f8e6a7
commit
3d6b1f75a4
17 changed files with 67 additions and 62 deletions
|
@ -10,21 +10,21 @@ internal class VRModeSwitchDebugger : MonoBehaviour
|
|||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (_switchCoroutine == null)
|
||||
{
|
||||
_switchCoroutine = StartCoroutine(SwitchLoop());
|
||||
_sleep = new WaitForSeconds(2f);
|
||||
}
|
||||
if (_switchCoroutine != null)
|
||||
return;
|
||||
|
||||
_switchCoroutine = StartCoroutine(SwitchLoop());
|
||||
_sleep = new WaitForSeconds(2f);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (_switchCoroutine != null)
|
||||
{
|
||||
StopCoroutine(_switchCoroutine);
|
||||
_switchCoroutine = null;
|
||||
_sleep = null;
|
||||
}
|
||||
if (_switchCoroutine == null)
|
||||
return;
|
||||
|
||||
StopCoroutine(_switchCoroutine);
|
||||
_switchCoroutine = null;
|
||||
_sleep = null;
|
||||
}
|
||||
|
||||
private IEnumerator SwitchLoop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue