Assets.Editor.FilePathExporter.FilePathExporter C# (CSharp) Метод

FilePathExporter() публичный Метод

public FilePathExporter ( string gameModePath, bool createMissingFolders ) : System
gameModePath string
createMissingFolders bool
Результат System
        public FilePathExporter(string gameModePath, bool createMissingFolders)
        {
            _gameModePath = string.IsNullOrEmpty(gameModePath) ? Environment.GetFolderPath(Environment.SpecialFolder.Desktop): gameModePath;

            if (createMissingFolders)
            {
                if (!Directory.Exists(_gameModePath)) Directory.CreateDirectory(_gameModePath);

                var mapPath = GetMapPath();
                if (!Directory.Exists(mapPath)) Directory.CreateDirectory(mapPath);

                var modelsPath = GetModelsPath();
                if (!Directory.Exists(modelsPath)) Directory.CreateDirectory(modelsPath);
            }
        }