Example #1
0
 private void CheckConfirmButtonPressed()
 {
     if (GetKeyUp(m_confirmKey))
     {
         OnConfirmButtonPressed?.Invoke();
     }
 }
 private void DetectConfirmButtonPressed()
 {
     if (Input.GetKeyUp(m_confirmKey))
     {
         OnConfirmButtonPressed?.Invoke();
     }
 }
Example #3
0
        private void CheckConfirmButtonPressed()
        {
            float confirmButton = 0f;

#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            confirmButton = GetAxis(CONFIRM_WIN);
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            confirmButton = GetAxis(CONFIRM_OSX);
#endif

            if (confirmButton > 05f)
            {
                OnConfirmButtonPressed?.Invoke();
            }
        }