LogIn

Description

Login the player, should be called just once at the beginning of your game.

If the player is not logged in, no other method will work.

Declaration

public static void LogIn(UnityAction<bool> loginComplete = null)

Parameters

Example

public class Test : MonoBehaviour
{
    void Start()
    {
        Gley.GameServices.API.LogIn(LoginComplete);
    }
    
    private void LoginComplete(bool success)
    {
        if (success == true)
        {
            //Login was successful
        }
        else
        {
            //Login failed
        }
    }
}

Last updated