[DesktopVRSwitch] Stop being a baby.

???
This commit is contained in:
NotAKidoS 2023-06-21 14:06:12 -05:00
parent 133f5200b4
commit 6774c3ff6d
22 changed files with 205 additions and 169 deletions

View file

@ -17,14 +17,8 @@ public class CVRGestureRecognizerTracker : VRModeTracker
private void OnPostSwitch(bool intoVR)
{
CVRGestureRecognizer _cvrGestureRecognizer = CVRGestureRecognizer.Instance;
if (_cvrGestureRecognizer == null)
{
DesktopVRSwitch.Logger.Error("Error while getting CVRGestureRecognizer!");
return;
}
DesktopVRSwitch.Logger.Msg("Updating CVRGestureRecognizer _camera to active camera.");
_cvrGestureRecognizer._camera = Utils.GetPlayerCameraObject(intoVR).GetComponent<Camera>();
CVRGestureRecognizer.Instance._camera = Utils.GetPlayerCameraObject(intoVR).GetComponent<Camera>();
}
}