private void Update() { if (Input.GetKey(KeyCode.Space) || Input.GetMouseButton(0) && timeOfLastInput + secondsBetweenInputs < Time.time) { theSorter.ExecuteSortStep(); } }