public void StartTherapy()
    {
        QueryIdTherapy();
        QueryIdPatient();

        if (inputTherapyId.text != "" && inputPatientId.text != "")
        {
            if (statePatient == true && stateTherapist == true)
            {
                tso.Login();
                DisplayPatientInfo();
                DisplayTherapistInfo();
                LoadMinigames(true, false, false, true, true, false);
            }
            else
            {
                notificationText.text = "Datos incorrectos";
                notification.SetActive(true);
            }
        }

        else
        {
            notificationText.text = "Campos vacios";
            notification.SetActive(true);
        }
    }
Esempio n. 2
0
 public void StartTherapy()
 {
     if (tso != null)
     {
         tso.Login();
         DisplayPatientInfo();
         DisplayTherapistInfo();
         LoadMinigames();
     }
     else
     {
         Debug.Log("No therapy session object found");
         LoadMinigames();
     }
 }