예제 #1
0
 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);
             }
         }
     }
 }
예제 #2
0
 public static void OpenMenu(Interactable interactable)
 {
     Instance.target = interactable;
     Instance.Open();
 }