예제 #1
0
        private void OnApplicationQuit()
        {
#if XBOX_ALLOWED
            XInputUtils.SetVibrationAll(0f);
#endif
            InputMaster.SetBlockAll(false);
        }
예제 #2
0
        private void OnApplicationPause(bool paused)
        {
#if XBOX_ALLOWED
            if (XInputUtils.StopVibrateOnAppPause && paused == true)
            {
                XInputUtils.SetVibrationAll(0f);
            }
#endif
        }
예제 #3
0
        private void OnApplicationFocus(bool focused)
        {
#if XBOX_ALLOWED
            if (XInputUtils.StopVibrateOnAppFocusLost && focused == false)
            {
                XInputUtils.SetVibrationAll(0f);
            }
#endif
        }