private static List <string> allBundlesFilesIn(string mainFolder, bool checkManifest = true)
        {
            var           infos    = WorldsRunTimeUtilitys.FoldersOnFolder(mainFolder);
            List <string> curFiles = new List <string>();

            for (int i = 0; i < infos.Count; i++)
            {
                var fillFileName = mainFolder + "/" + infos[i];
                var allFiles     = BunddlesInFolder(fillFileName, checkManifest);
                for (int j = 0; j < allFiles.Count; j++)
                {
                    curFiles.Add(allFiles[j]);
                }
            }
            return(curFiles);
        }
Exemplo n.º 2
0
        private void GetFilesAtPath()
        {
            string startPath = Application.streamingAssetsPath;

            if (FolderSearch != "")
            {
                startPath += "/";
                startPath += FolderSearch;
            }
            AddAllInFolder(startPath);
            var allfolders = WorldsRunTimeUtilitys.FoldersOnFolder(startPath);

            for (int i = 0; i < allfolders.Count; i++)
            {
                AddAllInFolder(startPath + "/" + allfolders[i]);
                var allInFolder = WorldsRunTimeUtilitys.FoldersOnFolder(startPath + "/" + allfolders[i]);
                //Debug.Log(allfolders[i]+ " First search");
                if (allInFolder != null)
                {
                    for (int x = 0; x < allInFolder.Count; x++)
                    {
                        AddAllInFolder(startPath + "/" + allfolders[i] + "/" + allInFolder[x]);
                        //Debug.Log(allInFolder[x] + " Second Search");
                        var allTheInfolder = WorldsRunTimeUtilitys.FoldersOnFolder(startPath + "/" + allfolders[i] + "/" + allInFolder[x]);
                        if (allTheInfolder != null)
                        {
                            for (int z = 0; z < allTheInfolder.Count; z++)
                            {
                                //Debug.Log(allTheInfolder[z] + " Thirth Search");
                                AddAllInFolder(startPath + "/" + allfolders[i] + "/" + allInFolder[x] + "/" + allTheInfolder[z]);
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void AddAllInFolder(string path)
        {
            var allObjs = WorldsRunTimeUtilitys.ObjectsInfoInFolder(path);

            AddToList(allObjs, path);
        }