Search Unity

Please Help me for google play game services

Discussion in 'Scripting' started by unknown17771, Feb 15, 2018.

  1. unknown17771

    unknown17771

    Joined:
    Nov 12, 2016
    Posts:
    19
    Why my code this code is not executed while in build

    if (GUILayout.Button("Log In"))
    {
    Social.localUser.Authenticate((bool success) =>
    {
    if (success)
    {
    Debug.Log("You've successfully logged in");
    }
    else
    {
    Debug.Log("Login failed for some reason");
    }
    });
    }