Exemple #1
0
 private void UpdatePlayerActivityState()
 {
     if (PlayFabClientAPI.IsClientLoggedIn())
     {
         PlayfabPlayerProfile.GetPlayerProfile(PlayerProfileResult);
     }
 }
Exemple #2
0
        private void PlayerProfileResult(GetPlayerProfileResult result)
        {
            if (result.PlayerProfile.ContactEmailAddresses.Count > 0)
            {
                if (!String.IsNullOrEmpty(result.PlayerProfile.ContactEmailAddresses[0].EmailAddress))
                {
                    string[] _str = StringSplitter(result.PlayerProfile.ContactEmailAddresses[0].EmailAddress);

                    //int _index = Int32.Parse(_str[0]);

                    PlayfabPlayerProfile.SetPlayerProfilePicIndexAndLogInActivity(_str[0]);
                }
            }
            else
            {
                PlayfabPlayerProfile.SetPlayerProfilePicIndexAndLogInActivity("0");
            }
        }