Example #1
0
    // Use this for initialization
    void Start()
    {
        tManag      = GameObject.Find("GvrEventSystem").GetComponent <translationManager>();
        textManager = GameObject.Find("LeftBodyPart").GetComponent <textbox>();
        lManag      = GameObject.Find("Text1").GetComponent <lightManager>();

        selectedPart = "";

        symptomToggles = new Dictionary <bodyPart, List <symptom> >()
        {
        };
        selectedSymptoms = new List <symptom>()
        {
        };

        defaultSymptoms = new List <symptom> {
            symptom.Pain, symptom.Swelling, symptom.Weakness, symptom.Redness, symptom.Itching, symptom.Other
        };
        symptomsDictionary = new Dictionary <bodyPart, List <symptom> >()
        {
            { bodyPart.UpperRightLeg, defaultSymptoms },
            { bodyPart.Knees, defaultSymptoms },
            { bodyPart.UpperLeftLeg, defaultSymptoms },
            { bodyPart.Belly, new List <symptom> {
                  symptom.Diarrhea, symptom.Constipation, symptom.LossOfAppetite, symptom.Swelling, symptom.WeightLoss, symptom.Other
              } },
            { bodyPart.LowerRightLeg, defaultSymptoms },
            { bodyPart.LowerHead, new List <symptom> {
                  symptom.Vomiting, symptom.BleedingGums, symptom.DryMouth, symptom.StiffNeck, symptom.Thirsty, symptom.Other
              } },
            { bodyPart.LowerBack, defaultSymptoms },
            { bodyPart.LowerLeftLeg, defaultSymptoms },
            { bodyPart.Feet, defaultSymptoms },
            { bodyPart.UpperHead, new List <symptom> {
                  symptom.Headache, symptom.Dizziness, symptom.EyePain, symptom.Fever, symptom.YellowingOfEyes, symptom.Other
              } },
            { bodyPart.UpperBack, defaultSymptoms },
            { bodyPart.Chest, new List <symptom> {
                  symptom.Cough, symptom.ShortOfBreath, symptom.Chills, symptom.Sweating, symptom.Pain, symptom.Other
              } },
            { bodyPart.RightBiceps, defaultSymptoms },
            { bodyPart.RightForearms, defaultSymptoms },
            { bodyPart.RightTriceps, defaultSymptoms },
            { bodyPart.RightHandPinky, defaultSymptoms },
            { bodyPart.RightHandRing, defaultSymptoms },
            { bodyPart.RightHandMiddle, defaultSymptoms },
            { bodyPart.RightHandIndex, defaultSymptoms },
            { bodyPart.RightHandThumb, defaultSymptoms },
            { bodyPart.LeftBiceps, defaultSymptoms },
            { bodyPart.LeftForearms, defaultSymptoms },
            { bodyPart.LeftTriceps, defaultSymptoms },
            { bodyPart.LeftHandPinky, defaultSymptoms },
            { bodyPart.LeftHandRing, defaultSymptoms },
            { bodyPart.LeftHandMiddle, defaultSymptoms },
            { bodyPart.LeftHandIndex, defaultSymptoms },
            { bodyPart.LeftHandThumb, defaultSymptoms },
        };
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        mytext.text  = "";
        tManag       = GameObject.Find("GvrEventSystem").GetComponent <translationManager>();
        symptomsList = new Dictionary <bodyPart, List <symptom> >()
        {
        };

        sendMessage = GameObject.Find("Button");
        sendMessage.SetActive(false);
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     mytext.text = "";
     tManag      = GameObject.Find("GvrEventSystem").GetComponent <translationManager>();
     refresh();
 }