public void PushImportAtt(AssetImportDefine df, EditorAssetImportAttribute att) { int value = (int)df; if (!this.importCaches.ContainsKey(value)) { this.importCaches[value] = att; } else { LogMgr.LogError("Duplicate Insert"); } }
public void DynamicInvokeAtt(AssetImportDefine df, params object[] objs) { try { int value = (int)df; if (this.importCaches.ContainsKey(value)) { EditorAssetImportAttribute att = this.importCaches[value]; att.callback.DynamicInvoke(objs); } }catch (Exception ex) { LogMgr.LogError(ex); } }