using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; namespace GeneralTools { public class ResourcesStore { public static Dictionary> resourceDict = new Dictionary>(); public static void AddResource(string key, bool cover, params object[] resource) { key = Path.GetFullPath(key); if (!cover && resourceDict.ContainsKey(key)) { } else { resourceDict[key] = new List(resource); } } public static List GetResource(string key) { key = Path.GetFullPath(key); if (resourceDict.ContainsKey(key)) { return resourceDict[key]; } else { return new List(); } } } }