private void InputManager_OnMouseLeftClick(InputInfo p_inputInfo) { if (p_inputInfo.phase == GesturePhaseType.START) { if (_interactionMenu.IsOpen == false) { MapItem __mapItem = p_inputInfo.hit.GetComponent <MapItem>(); if (__mapItem != null) { AudioController.Instance.Play(Tags.SFX_Mouse_Click); _interactionMenu.Open(__mapItem); } } } }
public static void OpenMenu(Interactable interactable) { Instance.target = interactable; Instance.Open(); }