mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 23:09:22 +00:00
[DesktopVRSwitch] Wait frame on MovementSystem OnPostSwitch.
testing
This commit is contained in:
parent
0fb7c3d401
commit
52d4ef3279
8 changed files with 123 additions and 48 deletions
|
@ -1,7 +1,6 @@
|
|||
using ABI_RC.Core.EventSystem;
|
||||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.DesktopVRSwitch;
|
||||
|
@ -17,13 +16,10 @@ internal static class Utils
|
|||
return PlayerSetup.Instance.desktopCamera;
|
||||
}
|
||||
|
||||
//stole from kafe :>
|
||||
internal static Vector3 GetPlayerRootPosition()
|
||||
internal static void ClearLocalAvatar()
|
||||
{
|
||||
return MovementSystem.Instance.rotationPivot.position with
|
||||
{
|
||||
y = MovementSystem.Instance.transform.position.y
|
||||
};
|
||||
DesktopVRSwitch.Logger.Msg("Clearing local avatar.");
|
||||
PlayerSetup.Instance.ClearAvatar();
|
||||
}
|
||||
|
||||
internal static void ReloadLocalAvatar()
|
||||
|
@ -31,4 +27,10 @@ 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