static AssetManager() { Array values = Enum.GetValues(typeof(AssetManagerUtil.ModuleBundle)); foreach (Object obj in values) { AssetManagerUtil.ModuleBundle moduleBundle = (AssetManagerUtil.ModuleBundle)((Int32)obj); if (moduleBundle == AssetManagerUtil.ModuleBundle.FieldMaps) { Array values2 = Enum.GetValues(typeof(AssetManagerUtil.FieldMapBundleId)); foreach (Object obj2 in values2) { AssetManagerUtil.FieldMapBundleId bundleId = (AssetManagerUtil.FieldMapBundleId)((Int32)obj2); AssetManager._AddAssetBundleEntry(AssetManagerUtil.GetFieldMapBundleName(bundleId), 0); } } else if (moduleBundle == AssetManagerUtil.ModuleBundle.Sounds) { Array values3 = Enum.GetValues(typeof(AssetManagerUtil.SoundBundleId)); foreach (Object obj3 in values3) { AssetManagerUtil.SoundBundleId bundleId2 = (AssetManagerUtil.SoundBundleId)((Int32)obj3); AssetManager._AddAssetBundleEntry(AssetManagerUtil.GetSoundBundleName(bundleId2), 0); } } else { AssetManager._AddAssetBundleEntry(AssetManagerUtil.GetModuleBundleName(moduleBundle), 0); } } AssetManager._LoadAnimationFolderMapping(); }
public static String CreateSoundBundleFilename(AssetManagerUtil.AvailablePlatform buildTarget, Boolean isCompressed, AssetManagerUtil.SoundBundleId bundleId) { return(String.Format("{0}{1}{2}{3}{4}", new Object[] { AssetManagerUtil.GetPlatformPrefix(buildTarget), AssetManagerUtil.GetCompressionPrefix(isCompressed), AssetManagerUtil.GetModuleBundleName(AssetManagerUtil.ModuleBundle.Sounds), (Int32)bundleId, AssetManagerUtil.GetBundleExtension() })); }
public static String GetSoundBundleName(AssetManagerUtil.SoundBundleId bundleId) { return(String.Format("{0}{1}", AssetManagerUtil.GetModuleBundleName(AssetManagerUtil.ModuleBundle.Sounds), (Int32)bundleId)); }