Exemple #1
0
    public void Continue()
    {
        Debug.Log("Continue was pressed");
        managePanelChanges.GoToCheersPanel();

        AppManeger.isLoadingData = true;
        string id        = AppManeger.instance.userID;
        string smoke     = AppManeger.instance.isSmoke.ToString();
        string minAge    = AppManeger.instance.wantAge [0].ToString();
        string maxAge    = AppManeger.instance.wantAge [1].ToString();
        string habit     = AppManeger.instance.yourHabit.ToString();
        string wantMan   = "false";
        string wantWoman = "false";

        if (AppManeger.instance.wantToMeet.Contains(AppManeger.Gender.Male))
        {
            wantMan = "true";
        }
        if (AppManeger.instance.wantToMeet.Contains(AppManeger.Gender.Female))
        {
            wantWoman = "true";
        }

        PostMethods.InsertUserIntoUsersPrefsDatabase(id, smoke, minAge, maxAge, habit, wantMan, wantWoman, (result) => {
            AppManeger.isLoadingData = false;
            Debug.Log(result);
        });
    }