Exemple #1
0
        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");
            }
        }
Exemple #2
0
        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);
            }
        }