Exemple #1
0
    // [快速登入]
    public void QuickStartCreate()
    {
        string url = Util.getInstance().LobbyAddr + "/users/autoCreate";

        Debug.Log("url : " + url);
        WWWForm form = new WWWForm();

        nwMng.WebRequest_Post(url, form).Then(json => {
            User.getInstance().Clone(json["data"]);
            User.getInstance().SetLocalUserData();
            Debug.Log("[CreateNewAccount] User instance: " + User.getInstance().ToString());
            Debug.Log("json : " + JsonMapper.ToJson(json));

            Debug.Log("Form upload complete!");
        }).Catch(err => {
            Debug.Log(err);
        });
    }