Exemplo n.º 1
0
        private void LoadFileContainers()
        {
            foreach (var path in FilesContainerPath)
            {
                FileContainer obj = Resources.Load <FileContainer>(path);

                if (Arrows.ContainsKey(obj.name))
                {
                    throw new System.Exception($"存在重名文件{obj.name}!");
                }

                FileContainers.Add(obj.name, obj);
            }
        }
Exemplo n.º 2
0
 public FileContainer GetFileContainer(string name)
 {
     return(FileContainers.ContainsKey(name) ? FileContainers[name] : null);
 }