mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
losing it
This commit is contained in:
parent
d15b446960
commit
0b035646d1
4 changed files with 24 additions and 18 deletions
|
@ -21,6 +21,7 @@ public class MainMenuHelper : MonoBehaviour
|
|||
public static MainMenuHelper Instance;
|
||||
public Transform worldAnchor;
|
||||
public bool NeedsPositionUpdate;
|
||||
public bool MenuIsOpen;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
|
@ -29,12 +30,15 @@ public class MainMenuHelper : MonoBehaviour
|
|||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (MSP_MenuInfo.UseIndependentHeadTurn)
|
||||
MSP_MenuInfo.HandleIndependentLookInput();
|
||||
if (MSP_MenuInfo.PlayerAnchorMenus)
|
||||
UpdateMenuPosition();
|
||||
if (NeedsPositionUpdate)
|
||||
UpdateMenuPosition();
|
||||
if (MenuIsOpen)
|
||||
{
|
||||
if (MSP_MenuInfo.UseIndependentHeadTurn)
|
||||
MSP_MenuInfo.HandleIndependentLookInput();
|
||||
if (MSP_MenuInfo.PlayerAnchorMenus)
|
||||
UpdateMenuPosition();
|
||||
if (NeedsPositionUpdate)
|
||||
UpdateMenuPosition();
|
||||
}
|
||||
}
|
||||
|
||||
public void CreateWorldAnchors()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue