コード例 #1
0
 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;
    }