void OnDisable() { joystickListener.Destroy(); keyboardListenerPlayerOne.Destroy(); keyboardListenerPlayerTwo.Destroy(); }
void OnDisable() { // This properly disposes of the action set and unsubscribes it from // update events so that it doesn't do additional processing unnecessarily. playerActions.Destroy(); }
void OnDisable() { InputManager.OnDeviceDetached -= InputManager_OnDeviceDetached; ControllerActions.Destroy(); }
void OnDisable() { InputManager.OnDeviceDetached -= OnDeviceDetached; joystickListener.Destroy(); keyboardListener.Destroy(); }
void OnDisable() { playerActions.Destroy(); }
private void OnDestroy() { pActions.Destroy(); }
private void OnDisable() { _actions.Destroy(); }