コード例 #1
0
    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;
        }
    }
コード例 #2
0
 public void SaveUser()
 {
     SaveSystemController.SaveUser(uinfo);
 }