ExecuteButtonName.cs
ExecuteButtonName.cs
Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.VR;
using PlayFab;
using PlayFab.ClientModels;
using Photon.Pun;
if (PlayFabClientAPI.IsClientLoggedIn())
{
PlayFabClientAPI.UpdateUserTitleDisplayName(new
UpdateUserTitleDisplayNameRequest
{
DisplayName = PlayerPrefs.GetString("username")
}, delegate (UpdateUserTitleDisplayNameResult result)
{
Debug.Log("Display Name Changed!");
}, delegate (PlayFabError error)
{
Debug.Log("Error");
if (error.Error == PlayFabErrorCode.AccountBanned)
{
Application.Quit();
}
});
}
}
}
}