private void saveAsFile() { _currentPath = EditorUtility.SaveFilePanel(string.Empty, string.IsNullOrEmpty(_currentPath) ? Application.streamingAssetsPath : _currentPath, "New Card", "thcd"); if (!string.IsNullOrEmpty(_currentPath)) { CardFileHelper.writeToFile(_currentPath, _card); } }
private void saveFile() { if (!string.IsNullOrEmpty(_currentPath)) { CardFileHelper.writeToFile(_currentPath, _card); } else { saveAsFile(); } }