Ejemplo n.º 1
0
        public void AddFolder(string folderAssetsPath, ABStateFolderHandler.SerializeData data)
        {
            var rootFolder = FindResRootFolder(folderAssetsPath);

            if (rootFolder != null)
            {
                Log.w("Already Add Root Folder.");
                return;
            }

            if (!Directory.Exists(EditorUtils.AssetsPath2ABSPath(folderAssetsPath)))
            {
                Log.w("Folder not Exit.");
                return;
            }

            ABStateFolderHandler folder = new ABStateFolderHandler();

            if (data == null)
            {
                folder.BuildAsFileSystem(folderAssetsPath);
            }
            else
            {
                folder.BuildAsConfigFile(data);
            }

            if (m_RootFolderArray == null)
            {
                m_RootFolderArray = new List <ABStateFolderHandler>();
            }

            m_RootFolderArray.Add(folder);
        }
Ejemplo n.º 2
0
 public GenerateConfigVisitor(ABStateFolderHandler handler)
 {
     m_Handler = handler;
 }