IEnumerator UIroutine() { while (true) { state.UIchat(chatStatePanel); yield return(new WaitForSeconds(0.02f)); } }