Untitled
unknown
plain_text
2 years ago
1.2 kB
9
Indexable
public void GoogleSignIn() { PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication); } private void ProcessAuthentication(SignInStatus status) { if (status == SignInStatus.Success) { Debug.Log(PlayGamesPlatform.Instance.GetUserDisplayName()); PlayGamesPlatform.Instance.RequestServerSideAccess(false, code => { LoginWithGooglePlayGamesServicesRequest googlerequset = new LoginWithGooglePlayGamesServicesRequest { CreateAccount = true, ServerAuthCode = code, TitleId = "77769" }; PlayFabClientAPI.LoginWithGooglePlayGamesServices(googlerequset, result => { Debug.Log("All Good" + ((PlayGamesLocalUser)Social.localUser).id);}, Error => { Debug.Log("error"); }); }); } else { PlayGamesPlatform.Instance.ManuallyAuthenticate(ProcessAuthentication); } }
Editor is loading...