private IEnumerator SaveSettingsCoroutine() { Game.Me.PanelLoading.SetActive(true); Game.Me.PanelLoading.GetComponent <PanelLoading>().TextTop = "Saving name..."; WWW www = null; string newName = InputFieldTextName.GetComponent <InputField>().text; if (newName.Length == 0) { newName = "Empty"; } if (newName.Length > 9) { newName = newName.Substring(0, 9); } newName = Regex.Replace(newName, "\\W", ""); InputFieldTextName.GetComponent <InputField>().text = newName; if (newName != Game.Me.UserName) { www = WebConnector.ChangeName(newName); Game.Me.UserName = newName; } yield return(new WaitForSeconds(1f)); yield return(www); Game.Me.PanelLoading.SetActive(false); }