private IEnumerator WaitForServerResponse(StatusBoxHandler box) { while (!StatusBoxHandler.readyToClose) { yield return(null); } while (box.GetPrefab() != null) { yield return(null); } CloseAndDiscardCharacterCreateInstance(); }
private IEnumerator WaitForServerResponse(StatusBoxHandler box) { while (!StatusBoxHandler.readyToClose) { yield return(null); } while (box.GetPrefab() != null) { yield return(null); } //refresh character select window here? var characterInfo = Utils.FindSiblingGameObjectByTag(character.transform.parent.gameObject, "CharacterInfo"); characterInfo.GetComponent <Text>().text = ""; Destroy(character.gameObject); CharacterSelect.deleting = false; }