void Awake() { string genresLoaded = SaveAndLoad.Load("Genres"); genres = SaveAndLoad.DeserializeObject <Genres>(genresLoaded).genres.ToList(); }
public static string GetName() { var names = (SaveAndLoad.DeserializeObject <RandomStuffs>(SaveAndLoad.Load("Names"))).names; return(names[Random.Range(0, names.Count)]); }