public void ResetInfo() { switch (userT) { case MainController.userType.Lab: patient_Info = new PatientInfo(); patient_temp = new PatientInfo(); isRegistered = false; userName = ""; LabNICA = ""; SaveSystemController.SaveUser(new UserInfo()); UnityEngine.SceneManagement.SceneManager.LoadScene(0); break; case MainController.userType.Doctor: patient_Info = new PatientInfo(); patient_temp = new PatientInfo(); isRegistered = false; userName = ""; userDNI = ""; docCode = ""; SaveSystemController.SaveUser(new UserInfo()); UnityEngine.SceneManagement.SceneManager.LoadScene(0); break; case MainController.userType.Hospital: patient_Info = new PatientInfo(); patient_temp = new PatientInfo(); isRegistered = false; userName = ""; userDNI = ""; DSACode = ""; hospitalName = ""; SaveSystemController.SaveUser(new UserInfo()); UnityEngine.SceneManagement.SceneManager.LoadScene(0); break; default: break; } }
public void SaveUser() { SaveSystemController.SaveUser(uinfo); }