mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
26
.Deprecated/DesktopVRSwitch/Utils.cs
Normal file
26
.Deprecated/DesktopVRSwitch/Utils.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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)
|
||||
{
|
||||
return intoVR ? PlayerSetup.Instance.vrCamera : PlayerSetup.Instance.desktopCamera;
|
||||
}
|
||||
|
||||
internal static void ClearLocalAvatar()
|
||||
{
|
||||
DesktopVRSwitch.Logger.Msg("Clearing local avatar.");
|
||||
PlayerSetup.Instance.ClearAvatar();
|
||||
}
|
||||
|
||||
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