These are examples of code that throw that exception:
Code: Select all
ES2.Save<string>(identifier,"save_name");
ES2.Save<float>(AudioManager.Instance.musicSource.volume, identifier+"music_volume");
ES2.Save<float>(AudioManager.Instance.soundSources[0].volume, identifier+"sound_volume");
Code: Select all
for(int i = 0; i < levelScores.Count; i++)
{
ES2.Save(levelScores[i], SaveManager.Instance.identifier + "_levelScores_"+i);
}