IEnumerator waitCreatingName(string newName) { waitingPanel.SetActive(true); while (!m_userNameList.Contains(newName)) { yield return(new WaitForSeconds(0.1f)); m_userNameList = xayaClient.GetNameList(); } userSelectDropdown.ClearOptions(); userSelectDropdown.AddOptions(m_userNameList); waitingPanel.SetActive(false); }
public void FillNameList() { nameList = xayaClient.GetNameList(); playernamelist.ClearOptions(); playernamelist.AddOptions(nameList); if (nameList.Count > 0 && nameSelected.Length <= 1) { nameSelected = nameList[0]; } }