Example #1
0
 private void CheckDeclineButtonPressed()
 {
     if (GetKeyUp(m_declineKey))
     {
         OnDeclineButtonPressed?.Invoke();
     }
 }
 private void DetectDeclineButtonPressed()
 {
     if (Input.GetKeyUp(m_declineKey))
     {
         OnDeclineButtonPressed?.Invoke();
     }
 }
Example #3
0
        private void CheckDeclineButtonPressed()
        {
            float declineButton = 0f;

#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            declineButton = GetAxis(DECLINE_WIN);
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            declineButton = GetAxis(DECLINE_OSX);
#endif

            if (declineButton > 05f)
            {
                OnDeclineButtonPressed?.Invoke();
            }
        }