Exemple #1
0
    IEnumerator enumerator(float time)
    {
        Dictionary <string, string> keyValues             = new Dictionary <string, string>();
        GetContentListRequest       getContentListRequest = new GetContentListRequest {
            Prefix = ""
        };

        PlayFabAdminAPI.GetContentList(getContentListRequest, result =>
        {
            contentInfos = result.Contents;
        },
                                       error => { Debug.LogError(error.GenerateErrorReport()); }, keyValues);
        yield return(new WaitForSeconds(time));

        for (int i = 0; i < contentInfos.Count; i++)
        {
            Content.GetChild(i + 1).gameObject.SetActive(true);
            Content.GetChild(i + 1).GetChild(0).GetComponent <Text>().text = contentInfos[i].Key;
        }
    }