mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] Testing
This commit is contained in:
parent
03514305be
commit
61a45f97bc
30 changed files with 957 additions and 524 deletions
24
DesktopVRSwitch/Utils.cs
Normal file
24
DesktopVRSwitch/Utils.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using ABI_RC.Core.EventSystem;
|
||||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.DesktopVRSwitch;
|
||||
|
||||
internal static class Utils
|
||||
{
|
||||
internal static GameObject GetPlayerCameraObject(bool intoVR)
|
||||
{
|
||||
if (intoVR)
|
||||
{
|
||||
return PlayerSetup.Instance.vrCamera;
|
||||
}
|
||||
return PlayerSetup.Instance.desktopCamera;
|
||||
}
|
||||
|
||||
internal static void ReloadLocalAvatar()
|
||||
{
|
||||
DesktopVRSwitch.Logger.Msg("Attempting to reload current local avatar from GUID.");
|
||||
AssetManagement.Instance.LoadLocalAvatar(MetaPort.Instance.currentAvatarGuid);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue