protected void UpdateUIandHandleControl() { if (Input.GetKeyUp(KeyCode.Escape)) { Application.Quit(); } if (null != textToUpdate) { if (uiFeedback != null) { StopCoroutine(uiFeedback); } uiFeedback = setResultTextForSeconds(textToUpdate, 5.0f, defaultResultText); StartCoroutine(uiFeedback); textToUpdate = null; } track.emitting = airsigManager.IsCollectingData(); if (nextUiAction != null) { nextUiAction(); nextUiAction = null; } }