예제 #1
0
 public IResourceModule GetResourceModule(string key)
 {
     if (!ResourceModules.ContainsKey(key))
     {
         return(null);
     }
     return(ResourceModules[key]);
 }
예제 #2
0
        public void AssignResourceModule(string key, IResourceModule module)
        {
            if (ResourceModules.ContainsKey(key))
            {
                Debug.Log("Can't assign a second resource module to key " + key);
                return;
            }

            ResourceModules.Add(key, module);
        }
예제 #3
0
 public void RemoveResourceModule(string key)
 {
     ResourceModules.Remove(key);
 }