private void SocialManagerEventProcessed()

in Assets/Xbox Live/Scripts/PlayerAuthentication.cs [193:236]


        private void SocialManagerEventProcessed(object sender, SocialEvent socialEvent)
        {
            if (this.xboxLiveUser == null)
            {
                this.xboxLiveUser = SignInManager.Instance.GetPlayer(this.PlayerNumber);
            }

            if (this.xboxLiveUser == null || (socialEvent.User.XboxUserId != this.xboxLiveUser.XboxUserId))
            {
                // Ignore the social event
                return;
            }

            if (socialEvent.EventType == SocialEventType.LocalUserAdded)
            {
                if (socialEvent.ErrorCode != 0)
                {
                    ExceptionManager.Instance.ThrowException(
                            ExceptionSource.SocialManager,
                            ExceptionType.AddLocalUserFailed,
                            new Exception(socialEvent.ErrorMessge));
                    LoadProfileInfo(false);
                }
                else
                {
                    LoadProfileInfo();
                }
            }
            else if (socialEvent.EventType == SocialEventType.SocialUserGroupLoaded &&
                     ((SocialUserGroupLoadedEventArgs)socialEvent.EventArgs).SocialUserGroup == userGroup)
            {
                if (socialEvent.ErrorCode != 0)
                {
                    ExceptionManager.Instance.ThrowException(
                           ExceptionSource.SocialManager,
                           ExceptionType.LoadSocialUserGroupFailed,
                           new Exception(socialEvent.ErrorMessge));
                }
                else
                {
                    StartCoroutine(FinishLoadingProfileInfo());
                }
            }
        }