Exemple #1
0
        public static Type[] GetAllStandalonePlayableAssets()
        {
            IEnumerable <TrackType> arg_23_0 = TimelineHelpers.GetMixableTypes();

            if (TimelineHelpers.< > f__mg$cache0 == null)
            {
                TimelineHelpers.< > f__mg$cache0 = new Func <TrackType, IEnumerable <Type> >(TimelineHelpers.GetTypesHandledByTrackType);
            }
            IEnumerable <Type> second = arg_23_0.SelectMany(TimelineHelpers.< > f__mg$cache0);
            IEnumerable <Type> first  = from assemblyType in EditorAssemblies.get_loadedTypes()
                                        where typeof(IPlayableAsset).IsAssignableFrom(assemblyType) && typeof(ScriptableObject).IsAssignableFrom(assemblyType) && assemblyType.Assembly.FullName.Contains("Assembly-CSharp")
                                        select assemblyType;

            TimelineHelpers.s_StandaloneAssetTypes = first.Except(second).ToArray <Type>();
            return(TimelineHelpers.s_StandaloneAssetTypes);
        }