public void OnApplicationQuit() { if (LoadSaveOnStart) { PlayerData data = new PlayerData("Player", vulnerabilites, values, stats, modifiers, statusTimers); data.Values = values; data.Stats = stats; data.StatusEffects = statusTimers; data.Modifiers = modifiers; DataSave.Save(data); } }
public void SaveCurrentFile() { m_dataStream.Save(m_data); }