private static void AddScheme(FileList fileList, FileScheme scheme) { var file = LoadScheme(scheme); switch (scheme.SchemeType) { case FileEntryType.Serialized: fileList.AddSerializedFile((SerializedFile)file); break; case FileEntryType.Bundle: case FileEntryType.Archive: case FileEntryType.Web: fileList.AddSerializedFile((SerializedFile)file); break; case FileEntryType.Resource: fileList.AddResourceFile((ResourceFile)file); break; } }