示例#1
0
    public static Promise UpdatePlayerAvatarURL(string playerAvatarUrl)
    {
        var promise = new Promise();
        var request = new UpdateAvatarUrlRequest {
            ImageUrl = playerAvatarUrl
        };

        PlayFabClientAPI.UpdateAvatarUrl(request, (result) => {
            promise.Resolve();
            SuccessCallback(result);
        }, ErrorCallback);
        return(promise);
    }
示例#2
0
 public static UnityTask <EmptyResponse> Do(UpdateAvatarUrlRequest request)
 {
     return(Do <UpdateAvatarUrlRequest, EmptyResponse>(request, PlayFabClientAPI.UpdateAvatarUrl));
 }
 public UnityTask <EmptyResponse> Do(UpdateAvatarUrlRequest request)
 {
     return(this.Do <UpdateAvatarUrlRequest, EmptyResponse>(request, PlayFabClientAPI.UpdateAvatarUrlAsync));
 }