Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void setCurrentProfile(Profile p)
 {
     currentProfile = p;
     currentProfile.loadOptions();
     PlayerPrefs.SetString("idProfile", currentProfile.idFile);
 }