public static void Initialize(PackageData packageData) { packageData.Initialize(); const float taskNum = 4; EditorUtility.DisplayProgressBar("Package Initializer", "Craete Package JSON", 0f / taskNum); string format = Resources.Load <TextAsset>("JSONFormat/PackageFormat").text; if (!CreateJson(packageData.directoryPath + "\\package.json", format, packageData)) { return; } EditorUtility.DisplayProgressBar("Package Initializer", "Craete Runtime Directory", 1f / taskNum); InitializeDirectory(packageData, "Runtime"); EditorUtility.DisplayProgressBar("Package Initializer", "Craete Editor Directory", 2f / taskNum); InitializeDirectory(packageData, "Editor"); EditorUtility.DisplayProgressBar("Package Initializer", "Craete Tests Directory", 3f / taskNum); InitializeDirectory(packageData, "Tests"); EditorUtility.ClearProgressBar(); EditorUtility.DisplayDialog("Package Initializer", "Complete", "Ok"); }