private void LoadData() { if (File.Exists(savePath)) { StreamReader streamReader = null; try { streamReader = new StreamReader(savePath); dataSave = DataSave.SerializeData(streamReader.ReadToEnd()); } catch (Exception e) { Debug.LogException(e); } finally { if (streamReader != null) { streamReader.Close(); } } } else { Debug.LogWarning("No save file could be found!"); } }