private void PlayerProfileServiceOnAuthenticate(object sender, PlayerProfileAuthenticateEventArgs e) { if (e.IsSuccess && e.Profile.Type == "xbox") { // Alex.ProfileManager.CreateOrUpdateProfile(e.Profile.IsBedrock ? ProfileManager.ProfileType.Bedrock : ProfileManager.ProfileType.Java, e.Profile, true); //Ready?.Invoke(); } else { // ErrorMessage.Text = "Could not login: " + e.ErrorMessage; // ErrorMessage.TextColor = TextColor.Red; // EnableInput(); } }
private void PlayerProfileServiceOnAuthenticate(object sender, PlayerProfileAuthenticateEventArgs e) { if (e.IsSuccess) { _profileManager.CreateOrUpdateProfile("java", e.Profile, true); _loginSuccesAction?.Invoke(); //Alex.SaveJava(_nameInput.Value); //Alex.GameStateManager.SetActiveState("serverlist"); } else { ErrorMessage.Text = "Could not login: " + e.ErrorMessage; ErrorMessage.TextColor = TextColor.Red; EnableInput(); } }
private void PlayerProfileServiceOnAuthenticate(object sender, PlayerProfileAuthenticateEventArgs e) { }