private void AddModuleAtPath(ModuleClass moduleClass, string modulePath) { if (fileWatcher != null) { fileWatcher.WatchFile(modulePath); } var name = Path.GetFileNameWithoutExtension(modulePath); if (name == null) { throw new Exception(String.Format("Invalid skin module path \"{0}\"", modulePath)); } var module = SkinModule.FromXmlFile(modulePath); if (module == null) { isValid = false; return; } Debug.LogWarning("Adding module: " + module.SourcePath + " With class: " + moduleClass); _modules[moduleClass].Add(module); }