private void CancelCurrentObjectIfNewBeforeEnd(GameObject touchedGameObject = null) { if (_currentInput == null || _currentInput.gameObject == touchedGameObject) { return; } _currentInput.CancelAction(); _currentInput = null; //_lastDownInput = null; Not Sure }