private IEnumerator WaitForServerResponse(StatusBoxHandler box)
 {
     while (!StatusBoxHandler.readyToClose)
     {
         yield return(null);
     }
     while (box.GetPrefab() != null)
     {
         yield return(null);
     }
     CloseAndDiscardCharacterCreateInstance();
 }
Пример #2
0
    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;
    }