public IResourceModule GetResourceModule(string key) { if (!ResourceModules.ContainsKey(key)) { return(null); } return(ResourceModules[key]); }
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); }
public void RemoveResourceModule(string key) { ResourceModules.Remove(key); }