Exemplo n.º 1
0
    public void login()
    {
        string id = textField.GetComponent <Text>().text;

        HttpMethods.Response resp = HttpMethods.GetGET("/login/" + id);

        if (resp.status_code == 403)
        {
            Debug.Log("Error");
        }
        else if (resp.status_code == 200)
        {
            SharedData.id = id;
            Application.LoadLevel("Main");
        }
    }