Esempio n. 1
0
    public void ResetRewired()
    {
        ReInput.Reset();

#if (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
        appleVirtualController = null;
#endif
    }
    public void Reset()
    {
        // Remove events.

        {
            ReInput.ControllerConnectedEvent    -= InternalOnControllerConnected;
            ReInput.ControllerDisconnectedEvent -= InternalOnControllerDisconnected;

            ReInput.EditorRecompileEvent -= InternalOnEditorRecompileEvent;
        }

        // Reset ReInput.

        ReInput.Reset();

        // Add events.

        {
            ReInput.ControllerConnectedEvent    += InternalOnControllerConnected;
            ReInput.ControllerDisconnectedEvent += InternalOnControllerDisconnected;

            ReInput.EditorRecompileEvent += InternalOnEditorRecompileEvent;
        }
    }