Exemplo n.º 1
0
 protected static void OnPostBuild(AssetBundleManifest manifest)
 {
     foreach (Type type in (from type in EZEditorUtility.GetAllTypes()
                            where type.IsClass
                            select type))
     {
         foreach (MethodInfo methods in type.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic))
         {
             if (methods.IsDefined(typeof(OnPostBuildAttribute), false))
             {
                 methods.Invoke(null, new object[] { manifest });
             }
         }
     }
 }
Exemplo n.º 2
0
 private void RefreshShaders()
 {
     shadersInProject = EZEditorUtility.GetAllShaders(true);
     shadersInProject.Sort((s1, s2) => string.Compare(s1.name, s2.name));
 }