Exemplo n.º 1
0
    public void OnLoginClick()
    {
        Debug.Log("Login clicked!");
        VK.Unity.VKSDK.Init(new VKInitParams {
            ApiVersion = "5.62", AppId = 5798402
        }, () =>
        {
            Debug.Log("Initialization completed");

            VKSDK.LogIn(new List <Scope> {
                Scope.Audio, Scope.Messages
            }, (authResp) =>
            {
                Debug.Log("Logged in " + authResp.accessToken);
            });
        });
    }