diff --git a/TABGVR/Player/VRControls.cs b/TABGVR/Player/VRControls.cs index 74023e1..ca2352d 100644 --- a/TABGVR/Player/VRControls.cs +++ b/TABGVR/Player/VRControls.cs @@ -1,5 +1,6 @@ using System; using JetBrains.Annotations; +using Landfall.Network; using TABGVR.Util; using UnityEngine; using UnityEngine.XR; @@ -183,7 +184,14 @@ private void Update() } if (yButton && !_yButtonPressed) InventoryUI.ToggleInventoryState(); - + if (xButton && !_xButtonPressed) + { + var activeSelf = mapHandler.images.activeSelf; + + MapHandler.isMiniMap = !activeSelf; + mapHandler.images.SetActive(!activeSelf); + } + _aButtonPressed = aButton; _bButtonPressed = bButton; _xButtonPressed = xButton;