private void AuthService() { if (!IsAuthenticated()) { Social.localUser.Authenticate((bool sucess) => { if (sucess == true) { Inetwork_callback.OnAuthenticationSucess(); authenticated = true; LocalPlayer.RequestAvatar(); LocalPlayer = new ParticipantInformation(Social.localUser.userName, true); Cloud_Manager.LoadData(); } else { Inetwork_callback.OnAuthenticationFail(); authenticated = false; } } ); } else { Inetwork_callback.OnAuthenticationSucess(); authenticated = true; LocalPlayer.RequestAvatar(); Cloud_Manager.LoadData(); } }
// Token: 0x060015C2 RID: 5570 RVA: 0x0004E184 File Offset: 0x0004C384 private static EmailAddressWrapper ConvertParticipantToEmailAddressWrapper(IParticipant participant) { ParticipantInformationDictionary participantInformation = EWSSettings.ParticipantInformation; ParticipantInformation participantInformationOrCreateNew = participantInformation.GetParticipantInformationOrCreateNew(participant); return(EmailAddressWrapper.FromParticipantInformation(participantInformationOrCreateNew)); }
public void SyncPlayerList() { LocalPlayer.SetID(PgamePlatform_instance.RealTime.GetSelf().ParticipantId); RemotePlayers = new List <ParticipantInformation>(1); foreach (Participant p in PgamePlatform_instance.RealTime.GetConnectedParticipants()) { if (p.ParticipantId != LocalPlayer.ParticipantID) { ParticipantInformation pi = new ParticipantInformation(p.DisplayName, false); pi.SetID(p.ParticipantId); RemotePlayers.Add(pi); } } }