mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] Stop being a baby.
???
This commit is contained in:
parent
133f5200b4
commit
6774c3ff6d
22 changed files with 205 additions and 169 deletions
|
@ -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>();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue