/// <summary> /// Disable the Enhanced Touch System, disable the Action Maps, and dispose of the control system. /// </summary> private void OnDisable() { EnhancedTouchSupport.Disable(); controls.Play.Disable(); controls.Touch.Disable(); controls.Dispose(); }
private void OnDestroy() => input.Dispose();