mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 07:19: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
|
@ -9,11 +9,7 @@ internal static class Utils
|
|||
{
|
||||
internal static GameObject GetPlayerCameraObject(bool intoVR)
|
||||
{
|
||||
if (intoVR)
|
||||
{
|
||||
return PlayerSetup.Instance.vrCamera;
|
||||
}
|
||||
return PlayerSetup.Instance.desktopCamera;
|
||||
return intoVR ? PlayerSetup.Instance.vrCamera : PlayerSetup.Instance.desktopCamera;
|
||||
}
|
||||
|
||||
internal static void ClearLocalAvatar()
|
||||
|
@ -27,10 +23,4 @@ internal static class Utils
|
|||
DesktopVRSwitch.Logger.Msg("Attempting to reload current local avatar from GUID.");
|
||||
AssetManagement.Instance.LoadLocalAvatar(MetaPort.Instance.currentAvatarGuid);
|
||||
}
|
||||
|
||||
internal static bool IsLocalAvatarLoaded()
|
||||
{
|
||||
return PlayerSetup.Instance._avatar != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue