using UnityEngine.SocialPlatforms;
void Authentication() {
Social.localUser.Authenticate((bool success) => {
if (success)
{
Debug.Log("You've successfully logged in.");
}
else
{
Debug.Log("Login failed for some reason.");
}
});
}
Adding the authentication into OnStart it crashes my application. I’ve loaded Social plugin to Unity.
[Play Games Plugin DLL] 04/10/15 18:33:39 +03:00 DEBUG: Activating PlayGamesPlatform.
[Play Games Plugin DLL] 04/10/15 18:33:39 +03:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
Calling Authentication onStart just crashes the application. I would like to move into new project, but kinda getting fkup about this hassle. I just wanted to try authentication first instead of showing anything about leaderboard to see if I’m done everything right.