private void LoadGameData() { string filePath = EditorUtility.OpenFilePanel("Select localization data file", Application.streamingAssetsPath, "json"); if (!string.IsNullOrEmpty(filePath)) { string dataAsJson = File.ReadAllText(filePath); localizationTextData = JsonUtility.FromJson <LocalizationTextData>(dataAsJson); } }
private void CreateNewData() { localizationTextData = new LocalizationTextData(); }