public void UpdateInfo() { currentPatientInfo = PatientManager.currentPatient_go.GetComponent <MedicalInfoHolder>().crewMemberInfo; symptom1.text = currentPatientInfo.symptom1.ToString(); symptom2.text = currentPatientInfo.symptom2.ToString(); symptom3.text = currentPatientInfo.symptom3.ToString(); }
public void UpdateInfo() { currentPatientInfo = PatientManager.currentPatient_go.GetComponent <MedicalInfoHolder>().crewMemberInfo; firstName.text = currentPatientInfo.first_name.ToString(); lastName.text = currentPatientInfo.last_name.ToString(); sex.text = currentPatientInfo.sex.ToString(); birth_date.text = currentPatientInfo.birth_date.ToString(); size.text = currentPatientInfo.size.ToString(); weight.text = currentPatientInfo.weight.ToString(); }
string FormateMistakesDisplaying(MedicalInfoHolder member, string place) { string strToReturn = ""; CrewMemberInfo memberInfo = member.crewMemberInfo; strToReturn += memberInfo.first_name.ToString() + " " + memberInfo.last_name.ToString() + " was on " + place + " but his state was:\n\n<b>" + member.patientAffliction + "</b>.\n\n\nHis symptoms were:\n\n"; if (memberInfo.symptom1 != "") { strToReturn += "-" + memberInfo.symptom1 + "\n"; } if (memberInfo.symptom2 != "") { strToReturn += "-" + memberInfo.symptom2 + "\n"; } if (memberInfo.symptom3 != "") { strToReturn += "-" + memberInfo.symptom3 + "\n"; } for (int i = 0; i < mistakesPanel.transform.childCount; i++) { string mistakesPanelTxt = mistakesPanel.transform.GetChild(0).name; if (mistakesPanelTxt == "") { mistakesPanel.transform.GetChild(i).GetComponent <TextMeshProUGUI>().text = txt.text; } } return(strToReturn); }