private IEnumerator Waiting() { string waitText = "等待抢庄"; while (_isWaiting) { NameLabel.Text(string.Format("{0}", waitText)); yield return(new WaitForSeconds(0.5f)); NameLabel.Text(string.Format("{0}.", waitText)); yield return(new WaitForSeconds(0.5f)); NameLabel.Text(string.Format("{0}..", waitText)); yield return(new WaitForSeconds(0.5f)); NameLabel.Text(string.Format("{0}...", waitText)); yield return(new WaitForSeconds(0.5f)); } }