protected IEnumerator RefreshAfterActionFailed(string errorMessage) { // set the error message if needed if (!string.IsNullOrEmpty(errorMessage)) { GameGUIManager.use.SetErrorMessage(errorMessage); } m_actionProgress = 1f; yield return StartCoroutine(Refresh()); }