示例#1
0
        public static void initGUI()
        {
            string  projectPath    = ProjectCloner.FindCurrentProjectPath();
            Project currentProject = new Project(projectPath);
            Project nextProject    = new Project(projectPath + "_clone");

            Debug.Log("Start project:\n" + currentProject);
            Debug.Log("Clone project:\n" + nextProject);


            ProjectCloner.CreateProjectFolder(nextProject);
            ProjectCloner.CopyLibrary(currentProject, nextProject);

            ProjectCloner.linkFolders(currentProject.assetPath, nextProject.assetPath);
            ProjectCloner.linkFolders(currentProject.projectSettingsPath, nextProject.projectSettingsPath);
            ProjectCloner.linkFolders(currentProject.packagesPath, nextProject.packagesPath);
            ProjectCloner.linkFolders(currentProject.autoBuildPath, nextProject.autoBuildPath);
        }