Example #1
0
 private void OnDisable()
 {
     this.inputMapper.Stop();
     this.inputMapper.RemoveAllEventListeners();
     ReInput.remove_ControllerConnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.OnControllerChanged));
     ReInput.remove_ControllerDisconnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.OnControllerChanged));
 }
Example #2
0
 private void OnDestroy()
 {
     ReInput.remove_ControllerConnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.OnControllerConnected));
     ReInput.remove_ControllerDisconnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.OnControllerDisconnected));
 }