示例#1
0
 public bool verifyCurrentProfile()
 {
     if(PlayerPrefs.HasKey("idProfile")){
         if(profiles.FirstOrDefault(c => c.idFile == PlayerPrefs.GetString("idProfile")) != null){
             currentProfile = profiles.FirstOrDefault(c => c.idFile == PlayerPrefs.GetString("idProfile"));
             currentProfile.loadOptions();
             return true;
         }
     }
     return false;
 }
示例#2
0
 public void setCurrentProfile(Profile p)
 {
     currentProfile = p;
     currentProfile.loadOptions();
     PlayerPrefs.SetString("idProfile", currentProfile.idFile);
 }