public void OnDestroy() { _inputManager.Dispose(); _inputManager = null; _inputStateSimulationManager.Dispose(); _inputStateSimulationManager = null; _ballStateSimulationManager.Dispose(); _ballStateSimulationManager = null; }