├── BirdAndCentaurDemo ├── Temp │ ├── UnityLockfile │ └── __EditModeScene ├── Library │ ├── BuildPlayer.prefs │ ├── AssetImportState │ ├── FailedAssetImports.txt │ ├── ScriptAssemblies │ │ ├── CompilationCompleted.txt │ │ ├── Assembly-CSharp.dll │ │ └── Assembly-CSharp.dll.mdb │ ├── guidmapper │ ├── ScriptMapper │ ├── assetDatabase3 │ ├── AnnotationManager │ ├── MonoManager.asset │ ├── AssetServerCacheV3 │ ├── AssetVersioning.db │ ├── BuildSettings.asset │ ├── CurrentLayout.dwlt │ ├── EditorUserSettings.asset │ ├── EditorUserBuildSettings.asset │ ├── InspectorExpandedItems.asset │ └── metadata │ │ ├── 11 │ │ └── 11a2c89a64cd546f19c24acd62d53e57 │ │ ├── 15 │ │ └── 1531ec92418264f5998a58e5f5275b1f │ │ ├── 19 │ │ └── 19247a332e45147698ca9db1d820434a │ │ ├── 25 │ │ └── 25cfd0ad5a99d4b90b96222f6a1de3d6 │ │ ├── 28 │ │ └── 28b5033ddae3e410db2e0a11e3c4bfa9 │ │ ├── 34 │ │ └── 344c2d05955d4493d8a00a27e37d5e46 │ │ ├── 35 │ │ └── 35d4b46c8e3114253aa57477b56fd79d │ │ ├── 41 │ │ └── 41daf1e3e4c23476f95d10ab1ac6a205 │ │ ├── 44 │ │ └── 441a981ffd2284067abdab163a9abdcf │ │ ├── 50 │ │ ├── 5011006406129491ab8b5837009b2e98 │ │ └── 5049cc1eabedc4db3b45d11b2505d838 │ │ ├── 52 │ │ └── 521e677aee0ef45a989899ee153920cb │ │ ├── 53 │ │ ├── 538dbcf0a01794544ba27b4afdf1ec1f │ │ └── 53e4559ca35c84e93b830a30a6c16880 │ │ ├── 55 │ │ ├── 55719eb008d6946f0a9e62e00551b66f │ │ └── 55c2cc843472c44bc8672c043454a391 │ │ ├── 58 │ │ └── 58ded86a8bad44181b977be33ac434a6 │ │ ├── 63 │ │ └── 630b6ccba3cd040d181d06104f634e4c │ │ ├── 68 │ │ └── 68b40639b19934d1ba18904db2444f81 │ │ ├── 81 │ │ └── 813fea7c3989c4ac3927f4305152912b │ │ ├── 82 │ │ └── 821f82b6c1f0c4d01953228c4b4e4875 │ │ ├── 84 │ │ └── 844567dcf1516456eafa5e32ce1369d0 │ │ ├── 89 │ │ └── 8989ec3914b054e63b4cffa797fbbccb │ │ ├── 90 │ │ ├── 90f8f29b301704db98da97c842304ba2 │ │ └── 90ffe0cb561794515b77cea9d1fca48c │ │ ├── 96 │ │ └── 96eb3985c5a4e46d199b1f15fa4b5bf4 │ │ ├── 98 │ │ └── 98e587a4bbf054e5d8e89c2a3b5047e9 │ │ ├── 99 │ │ └── 9955af53280a240caab96eb8b4bdb97c │ │ ├── 00 │ │ ├── 00000000000000001000000000000000 │ │ ├── 00000000000000002000000000000000 │ │ ├── 00000000000000003000000000000000 │ │ ├── 00000000000000004000000000000000 │ │ ├── 00000000000000004100000000000000 │ │ ├── 00000000000000005000000000000000 │ │ ├── 00000000000000005100000000000000 │ │ ├── 00000000000000006000000000000000 │ │ ├── 00000000000000006100000000000000 │ │ ├── 00000000000000007000000000000000 │ │ ├── 00000000000000008000000000000000 │ │ ├── 00000000000000009000000000000000 │ │ ├── 0000000000000000a000000000000000 │ │ ├── 0000000000000000b000000000000000 │ │ └── 0000000000000000c000000000000000 │ │ ├── 07 │ │ └── 07de5e52f394e454f98c10d4ba12d043 │ │ ├── 1b │ │ └── 1bf3eff016299478fb0cef94fc6f31cb │ │ ├── 1f │ │ └── 1fd70ab400f1d42a29358df80544b131 │ │ ├── 2d │ │ ├── 2d9bda8cfc3fb4853844742af7c50ec4 │ │ └── 2dddc49b5baac4b2096d88cd7bba9290 │ │ ├── 2e │ │ ├── 2ecf5e0a9f277481d98c8e106aa0a36d │ │ └── 2ee3acf6ef94f4174a489d6ae32e7856 │ │ ├── 2f │ │ └── 2f1df475d68a64dc38cb6c4b246734bb │ │ ├── 3f │ │ └── 3f95f06c15bc14cdb9f2a9da82578921 │ │ ├── 4b │ │ └── 4b672d038247a44afb52e475e49fd30b │ │ ├── 4e │ │ └── 4e8ca51167e75487897249b60e3a18f9 │ │ ├── 5b │ │ └── 5b31cd661696e4a268951f24049e6b0f │ │ ├── 5d │ │ └── 5daa1206d78db414d96b66abd39f436d │ │ ├── 6c │ │ └── 6cb04f0fc2154457ea1db578eeffc32c │ │ ├── 6e │ │ ├── 6e1564b09bf6e401da58fe25faf7dabb │ │ ├── 6e4276e6ce22e460582ca4eda984f4a6 │ │ └── 6e867d463928c4ef8966e21ca4adc039 │ │ ├── 7c │ │ └── 7cff93aa141234a2d9545b950006aac8 │ │ ├── 8d │ │ └── 8db1a093f4f874b3db5fcb80e2b31a4d │ │ ├── 9c │ │ └── 9c0b025ee95274ec89f4703c68dd0b93 │ │ ├── a1 │ │ └── a1d54fcf3985b4c3691de99c9b6f9f01 │ │ ├── a7 │ │ ├── a741714bda12f4531be7766df99c1033 │ │ ├── a7505a3d9b0644182aa3767b3182a116 │ │ ├── a75ae5bb4178742edb49cd3b4786d61e │ │ ├── a770d003f6e6e4f73be72add9aa626b6 │ │ ├── a7b70d01fa092409ca8066ac2ca9daa3 │ │ └── a7c0de0d3ca634b6d9badb6e14762f31 │ │ ├── ae │ │ └── aedbd1d99002943c1b8653968f041ecc │ │ ├── b2 │ │ └── b2e004b465bad476aad12af6cea9733c │ │ ├── b6 │ │ └── b6959cf40779540c899e8c7432b08465 │ │ ├── b7 │ │ └── b7eb4dc8a121c42318adf1df68d011fb │ │ ├── bc │ │ └── bc4540f55e1da45a680ca7da4f4f3f6c │ │ ├── bf │ │ └── bfd18a52a382242c89c1e1ebca9fd8e6 │ │ ├── c1 │ │ ├── c149daac6c6844134833d4792ffedf66 │ │ └── c1cfb0a5d886c44ec92f81935ffa4589 │ │ ├── c2 │ │ └── c211d6d674681454b8ef301e15ace68b │ │ ├── c5 │ │ └── c57d18e2116de45619c2e7f44c104ba0 │ │ ├── c8 │ │ ├── c87cfc71421e54851b8e41497a7a673c │ │ └── c8b0770a5a7464109b837fbec0aead54 │ │ ├── d9 │ │ └── d98e428e5f4544bd0a5563e92ee926ae │ │ ├── df │ │ └── df8c25a6921a142d780713dd331fdeb1 │ │ ├── e1 │ │ ├── e15ffb8aa44234ec28956d8f79601d2e │ │ └── e180c73e204ff42b5b8995db20fcf159 │ │ ├── e2 │ │ └── e210561c7bf074cefb8fd1e6237199ba │ │ ├── f3 │ │ └── f371db3be495e4cc9aa898db05b845b5 │ │ ├── fa │ │ └── fa9be202116484c268b02844509277c1 │ │ ├── fb │ │ └── fbadbcd9f202043bfa42143de5d9c861 │ │ ├── fc │ │ ├── fcae2c1ce94764692a9459e4c64654d8 │ │ └── fccaec77acf8e43209e50c0f8c0cbe35 │ │ └── fd │ │ └── fdf410dead3c948398c4cef7384f96a3 ├── Assets │ ├── demo.unity │ ├── New Terrain.asset │ ├── demo.unity.meta │ ├── Resources │ │ ├── texture.png │ │ ├── skeleton.json.txt.meta │ │ ├── texture.json.txt.meta │ │ ├── texture.png.meta │ │ └── texture.json.txt │ ├── New Terrain.asset.meta │ ├── Resources.meta │ ├── script.meta │ └── script │ │ ├── Com.meta │ │ ├── DragonBones.meta │ │ ├── DragonBones │ │ ├── DragonBones.csproj.meta │ │ ├── Core.meta │ │ ├── Events.meta │ │ ├── Utils.meta │ │ ├── Animation.meta │ │ ├── Display.meta │ │ ├── Factorys.meta │ │ ├── Objects.meta │ │ ├── Textures.meta │ │ ├── managers.meta │ │ ├── Bone.cs.meta │ │ ├── Slot.cs.meta │ │ ├── Armature.cs.meta │ │ ├── AssemblyInfo.cs.meta │ │ ├── Core │ │ │ ├── DBObject.cs.meta │ │ │ ├── DragonBones.cs.meta │ │ │ └── DragonBones.cs │ │ ├── Objects │ │ │ ├── Frame.cs.meta │ │ │ ├── ArmatureData.cs.meta │ │ │ ├── AtlasData.cs.meta │ │ │ ├── BoneData.cs.meta │ │ │ ├── DBTransform.cs.meta │ │ │ ├── DataParser.cs.meta │ │ │ ├── DisplayData.cs.meta │ │ │ ├── SkeletonData.cs.meta │ │ │ ├── SkinData.cs.meta │ │ │ ├── SlotData.cs.meta │ │ │ ├── Timeline.cs.meta │ │ │ ├── AnimationData.cs.meta │ │ │ ├── AtlasDataParser.cs.meta │ │ │ ├── ObjectDataParser.cs.meta │ │ │ ├── TransformFrame.cs.meta │ │ │ ├── TransformTimeline.cs.meta │ │ │ ├── XMLDataParser.cs.meta │ │ │ ├── XMLDataParser.cs │ │ │ ├── Frame.cs │ │ │ ├── DataParser.cs │ │ │ ├── DisplayData.cs │ │ │ ├── BoneData.cs │ │ │ ├── AtlasData.cs │ │ │ ├── TransformFrame.cs │ │ │ ├── TransformTimeline.cs │ │ │ ├── SkinData.cs │ │ │ ├── Timeline.cs │ │ │ ├── SlotData.cs │ │ │ ├── AtlasDataParser.cs │ │ │ ├── AnimationData.cs │ │ │ ├── DBTransform.cs │ │ │ └── SkeletonData.cs │ │ ├── Utils │ │ │ ├── BytesType.cs.meta │ │ │ ├── ConstValues.cs.meta │ │ │ ├── DBDataUtil.cs.meta │ │ │ ├── TransformUtil.cs.meta │ │ │ ├── parseOldXMLData.cs.meta │ │ │ ├── BytesType.cs │ │ │ ├── parseOldXMLData.cs │ │ │ ├── TransformUtil.cs │ │ │ └── ConstValues.cs │ │ ├── Animation │ │ │ ├── Animation.cs.meta │ │ │ ├── WorldClock.cs.meta │ │ │ ├── AnimationState.cs.meta │ │ │ ├── IAnimatable.cs.meta │ │ │ ├── TimelineState.cs.meta │ │ │ └── IAnimatable.cs │ │ ├── Events │ │ │ ├── ArmatureEvent.cs.meta │ │ │ ├── FrameEvent.cs.meta │ │ │ ├── SoundEvent.cs.meta │ │ │ ├── AnimationEvent.cs.meta │ │ │ ├── SoundEventManager.cs.meta │ │ │ ├── SoundEventManager.cs │ │ │ ├── ArmatureEvent.cs │ │ │ ├── SoundEvent.cs │ │ │ ├── FrameEvent.cs │ │ │ └── AnimationEvent.cs │ │ ├── Factorys │ │ │ ├── BaseFactory.cs.meta │ │ │ ├── UnityFactory.cs.meta │ │ │ └── UnityFactory.cs │ │ ├── Display │ │ │ ├── IDisplayBridge.cs.meta │ │ │ ├── UnityBoneDisplay.cs.meta │ │ │ ├── UnityArmatureDisplay.cs.meta │ │ │ ├── UnityDisplayBridge.cs.meta │ │ │ ├── IDisplayBridge.cs │ │ │ ├── UnityDisplayBridge.cs │ │ │ └── UnityBoneDisplay.cs │ │ ├── Textures │ │ │ ├── TextureAtlas.cs.meta │ │ │ └── TextureAtlas.cs │ │ └── AssemblyInfo.cs │ │ ├── Com │ │ ├── Viperstudio.meta │ │ └── Viperstudio │ │ │ ├── Events.meta │ │ │ ├── Geom.meta │ │ │ ├── Utils.meta │ │ │ ├── Geom │ │ │ ├── Matrix.cs.meta │ │ │ ├── Point.cs.meta │ │ │ ├── ColorTransform.cs.meta │ │ │ ├── Point.cs │ │ │ ├── ColorTransform.cs │ │ │ └── Matrix.cs │ │ │ ├── Utils │ │ │ ├── FPS.cs.meta │ │ │ ├── Json.cs.meta │ │ │ ├── Logger.cs.meta │ │ │ ├── Matrix.cs.meta │ │ │ ├── Logger.cs │ │ │ └── FPS.cs │ │ │ └── Events │ │ │ ├── Event.cs.meta │ │ │ ├── EventDispatcher.cs.meta │ │ │ ├── Event.cs │ │ │ └── EventDispatcher.cs │ │ ├── CharactorManager.cs.meta │ │ └── CharactorManager.cs ├── ProjectSettings │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── AudioManager.asset │ ├── InputManager.asset │ ├── NavMeshLayers.asset │ ├── DynamicsManager.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── NetworkManager.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── Physics2DSettings.asset │ └── EditorBuildSettings.asset ├── BirdAndCentaurDemo.userprefs ├── BirdAndCentaurDemo.sln └── BirdAndCentaurDemo-csharp.sln ├── DragonBones ├── Utils │ ├── BytesType.cs │ ├── parseOldXMLData.cs │ ├── TransformUtil.cs │ └── ConstValues.cs ├── Objects │ ├── XMLDataParser.cs │ ├── Frame.cs │ ├── DataParser.cs │ ├── DisplayData.cs │ ├── BoneData.cs │ ├── AtlasData.cs │ ├── TransformFrame.cs │ ├── TransformTimeline.cs │ ├── SkinData.cs │ ├── Timeline.cs │ ├── SlotData.cs │ ├── AtlasDataParser.cs │ ├── AnimationData.cs │ ├── DBTransform.cs │ └── SkeletonData.cs ├── Core │ └── DragonBones.cs ├── Events │ ├── SoundEventManager.cs │ ├── ArmatureEvent.cs │ ├── SoundEvent.cs │ ├── FrameEvent.cs │ └── AnimationEvent.cs ├── Animation │ └── IAnimatable.cs ├── AssemblyInfo.cs ├── Textures │ └── TextureAtlas.cs ├── Display │ ├── IDisplayBridge.cs │ ├── UnityDisplayBridge.cs │ ├── UnityBoneDisplay.cs │ └── UnityArmatureDisplay.cs └── Factorys │ └── UnityFactory.cs ├── README.md ├── Com └── Viperstudio │ ├── Geom │ ├── Point.cs │ ├── ColorTransform.cs │ └── Matrix.cs │ ├── Utils │ ├── Logger.cs │ └── FPS.cs │ └── Events │ ├── Event.cs │ └── EventDispatcher.cs └── LICENSE /BirdAndCentaurDemo/Temp/UnityLockfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/BuildPlayer.prefs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/AssetImportState: -------------------------------------------------------------------------------- 1 | 4;0;-1 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/FailedAssetImports.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/ScriptAssemblies/CompilationCompleted.txt: -------------------------------------------------------------------------------- 1 | Completed 2 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/demo.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Assets/demo.unity -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/guidmapper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/guidmapper -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/ScriptMapper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/ScriptMapper -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Temp/__EditModeScene: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Temp/__EditModeScene -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/assetDatabase3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/assetDatabase3 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/New Terrain.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Assets/New Terrain.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/demo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5011006406129491ab8b5837009b2e98 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/AnnotationManager: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/AnnotationManager -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/MonoManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/MonoManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources/texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Assets/Resources/texture.png -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/AssetServerCacheV3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/AssetServerCacheV3 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/AssetVersioning.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/AssetVersioning.db -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/BuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/BuildSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/CurrentLayout.dwlt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/CurrentLayout.dwlt -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/New Terrain.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55c2cc843472c44bc8672c043454a391 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/EditorUserSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/EditorUserSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e1564b09bf6e401da58fe25faf7dabb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources/skeleton.json.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90ffe0cb561794515b77cea9d1fca48c 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources/texture.json.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e15ffb8aa44234ec28956d8f79601d2e 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cff93aa141234a2d9545b950006aac8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 441a981ffd2284067abdab163a9abdcf 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/EditorUserBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/EditorUserBuildSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/InspectorExpandedItems.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/InspectorExpandedItems.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b31cd661696e4a268951f24049e6b0f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/DragonBones.csproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28b5033ddae3e410db2e0a11e3c4bfa9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19247a332e45147698ca9db1d820434a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25cfd0ad5a99d4b90b96222f6a1de3d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c87cfc71421e54851b8e41497a7a673c 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 521e677aee0ef45a989899ee153920cb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7505a3d9b0644182aa3767b3182a116 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98e587a4bbf054e5d8e89c2a3b5047e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aedbd1d99002943c1b8653968f041ecc 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55719eb008d6946f0a9e62e00551b66f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c57d18e2116de45619c2e7f44c104ba0 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Factorys.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e210561c7bf074cefb8fd1e6237199ba 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcae2c1ce94764692a9459e4c64654d8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c0b025ee95274ec89f4703c68dd0b93 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/managers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e867d463928c4ef8966e21ca4adc039 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/ScriptAssemblies/Assembly-CSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/ScriptAssemblies/Assembly-CSharp.dll -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000001000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000001000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000002000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000002000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000003000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000003000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000004000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000004000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000004100000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000004100000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000005000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000005000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000005100000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000005100000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000006000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000006000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000006100000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000006100000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000007000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000007000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000008000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000008000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/00000000000000009000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/00000000000000009000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/0000000000000000a000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/0000000000000000a000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/0000000000000000b000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/0000000000000000b000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/00/0000000000000000c000000000000000: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/00/0000000000000000c000000000000000 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/07/07de5e52f394e454f98c10d4ba12d043: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/07/07de5e52f394e454f98c10d4ba12d043 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/11/11a2c89a64cd546f19c24acd62d53e57: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/11/11a2c89a64cd546f19c24acd62d53e57 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/15/1531ec92418264f5998a58e5f5275b1f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/15/1531ec92418264f5998a58e5f5275b1f -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/19/19247a332e45147698ca9db1d820434a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/19/19247a332e45147698ca9db1d820434a -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/1b/1bf3eff016299478fb0cef94fc6f31cb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/1b/1bf3eff016299478fb0cef94fc6f31cb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/1f/1fd70ab400f1d42a29358df80544b131: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/1f/1fd70ab400f1d42a29358df80544b131 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/25/25cfd0ad5a99d4b90b96222f6a1de3d6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/25/25cfd0ad5a99d4b90b96222f6a1de3d6 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/28/28b5033ddae3e410db2e0a11e3c4bfa9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/28/28b5033ddae3e410db2e0a11e3c4bfa9 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/2d/2d9bda8cfc3fb4853844742af7c50ec4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/2d/2d9bda8cfc3fb4853844742af7c50ec4 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/2d/2dddc49b5baac4b2096d88cd7bba9290: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/2d/2dddc49b5baac4b2096d88cd7bba9290 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/2e/2ecf5e0a9f277481d98c8e106aa0a36d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/2e/2ecf5e0a9f277481d98c8e106aa0a36d -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/2e/2ee3acf6ef94f4174a489d6ae32e7856: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/2e/2ee3acf6ef94f4174a489d6ae32e7856 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/2f/2f1df475d68a64dc38cb6c4b246734bb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/2f/2f1df475d68a64dc38cb6c4b246734bb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/34/344c2d05955d4493d8a00a27e37d5e46: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/34/344c2d05955d4493d8a00a27e37d5e46 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/35/35d4b46c8e3114253aa57477b56fd79d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/35/35d4b46c8e3114253aa57477b56fd79d -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/3f/3f95f06c15bc14cdb9f2a9da82578921: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/3f/3f95f06c15bc14cdb9f2a9da82578921 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/41/41daf1e3e4c23476f95d10ab1ac6a205: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/41/41daf1e3e4c23476f95d10ab1ac6a205 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/44/441a981ffd2284067abdab163a9abdcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/44/441a981ffd2284067abdab163a9abdcf -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/4b/4b672d038247a44afb52e475e49fd30b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/4b/4b672d038247a44afb52e475e49fd30b -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/4e/4e8ca51167e75487897249b60e3a18f9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/4e/4e8ca51167e75487897249b60e3a18f9 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/50/5011006406129491ab8b5837009b2e98: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/50/5011006406129491ab8b5837009b2e98 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/50/5049cc1eabedc4db3b45d11b2505d838: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/50/5049cc1eabedc4db3b45d11b2505d838 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/52/521e677aee0ef45a989899ee153920cb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/52/521e677aee0ef45a989899ee153920cb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/53/538dbcf0a01794544ba27b4afdf1ec1f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/53/538dbcf0a01794544ba27b4afdf1ec1f -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/53/53e4559ca35c84e93b830a30a6c16880: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/53/53e4559ca35c84e93b830a30a6c16880 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/55/55719eb008d6946f0a9e62e00551b66f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/55/55719eb008d6946f0a9e62e00551b66f -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/55/55c2cc843472c44bc8672c043454a391: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/55/55c2cc843472c44bc8672c043454a391 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/58/58ded86a8bad44181b977be33ac434a6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/58/58ded86a8bad44181b977be33ac434a6 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/5b/5b31cd661696e4a268951f24049e6b0f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/5b/5b31cd661696e4a268951f24049e6b0f -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/5d/5daa1206d78db414d96b66abd39f436d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/5d/5daa1206d78db414d96b66abd39f436d -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/63/630b6ccba3cd040d181d06104f634e4c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/63/630b6ccba3cd040d181d06104f634e4c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/68/68b40639b19934d1ba18904db2444f81: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/68/68b40639b19934d1ba18904db2444f81 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/6c/6cb04f0fc2154457ea1db578eeffc32c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/6c/6cb04f0fc2154457ea1db578eeffc32c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/6e/6e1564b09bf6e401da58fe25faf7dabb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/6e/6e1564b09bf6e401da58fe25faf7dabb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/6e/6e4276e6ce22e460582ca4eda984f4a6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/6e/6e4276e6ce22e460582ca4eda984f4a6 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/6e/6e867d463928c4ef8966e21ca4adc039: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/6e/6e867d463928c4ef8966e21ca4adc039 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/7c/7cff93aa141234a2d9545b950006aac8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/7c/7cff93aa141234a2d9545b950006aac8 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/81/813fea7c3989c4ac3927f4305152912b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/81/813fea7c3989c4ac3927f4305152912b -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/82/821f82b6c1f0c4d01953228c4b4e4875: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/82/821f82b6c1f0c4d01953228c4b4e4875 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/84/844567dcf1516456eafa5e32ce1369d0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/84/844567dcf1516456eafa5e32ce1369d0 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/89/8989ec3914b054e63b4cffa797fbbccb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/89/8989ec3914b054e63b4cffa797fbbccb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/8d/8db1a093f4f874b3db5fcb80e2b31a4d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/8d/8db1a093f4f874b3db5fcb80e2b31a4d -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/90/90f8f29b301704db98da97c842304ba2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/90/90f8f29b301704db98da97c842304ba2 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/90/90ffe0cb561794515b77cea9d1fca48c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/90/90ffe0cb561794515b77cea9d1fca48c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/96/96eb3985c5a4e46d199b1f15fa4b5bf4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/96/96eb3985c5a4e46d199b1f15fa4b5bf4 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/98/98e587a4bbf054e5d8e89c2a3b5047e9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/98/98e587a4bbf054e5d8e89c2a3b5047e9 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/99/9955af53280a240caab96eb8b4bdb97c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/99/9955af53280a240caab96eb8b4bdb97c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/9c/9c0b025ee95274ec89f4703c68dd0b93: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/9c/9c0b025ee95274ec89f4703c68dd0b93 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a1/a1d54fcf3985b4c3691de99c9b6f9f01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a1/a1d54fcf3985b4c3691de99c9b6f9f01 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a741714bda12f4531be7766df99c1033: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a741714bda12f4531be7766df99c1033 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a7505a3d9b0644182aa3767b3182a116: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a7505a3d9b0644182aa3767b3182a116 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a75ae5bb4178742edb49cd3b4786d61e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a75ae5bb4178742edb49cd3b4786d61e -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a770d003f6e6e4f73be72add9aa626b6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a770d003f6e6e4f73be72add9aa626b6 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a7b70d01fa092409ca8066ac2ca9daa3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a7b70d01fa092409ca8066ac2ca9daa3 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/a7/a7c0de0d3ca634b6d9badb6e14762f31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/a7/a7c0de0d3ca634b6d9badb6e14762f31 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/ae/aedbd1d99002943c1b8653968f041ecc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/ae/aedbd1d99002943c1b8653968f041ecc -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/b2/b2e004b465bad476aad12af6cea9733c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/b2/b2e004b465bad476aad12af6cea9733c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/b6/b6959cf40779540c899e8c7432b08465: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/b6/b6959cf40779540c899e8c7432b08465 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/b7/b7eb4dc8a121c42318adf1df68d011fb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/b7/b7eb4dc8a121c42318adf1df68d011fb -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/bc/bc4540f55e1da45a680ca7da4f4f3f6c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/bc/bc4540f55e1da45a680ca7da4f4f3f6c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/bf/bfd18a52a382242c89c1e1ebca9fd8e6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/bf/bfd18a52a382242c89c1e1ebca9fd8e6 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c1/c149daac6c6844134833d4792ffedf66: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c1/c149daac6c6844134833d4792ffedf66 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c1/c1cfb0a5d886c44ec92f81935ffa4589: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c1/c1cfb0a5d886c44ec92f81935ffa4589 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c2/c211d6d674681454b8ef301e15ace68b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c2/c211d6d674681454b8ef301e15ace68b -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c5/c57d18e2116de45619c2e7f44c104ba0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c5/c57d18e2116de45619c2e7f44c104ba0 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c8/c87cfc71421e54851b8e41497a7a673c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c8/c87cfc71421e54851b8e41497a7a673c -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/c8/c8b0770a5a7464109b837fbec0aead54: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/c8/c8b0770a5a7464109b837fbec0aead54 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/d9/d98e428e5f4544bd0a5563e92ee926ae: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/d9/d98e428e5f4544bd0a5563e92ee926ae -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/df/df8c25a6921a142d780713dd331fdeb1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/df/df8c25a6921a142d780713dd331fdeb1 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/e1/e15ffb8aa44234ec28956d8f79601d2e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/e1/e15ffb8aa44234ec28956d8f79601d2e -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/e1/e180c73e204ff42b5b8995db20fcf159: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/e1/e180c73e204ff42b5b8995db20fcf159 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/e2/e210561c7bf074cefb8fd1e6237199ba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/e2/e210561c7bf074cefb8fd1e6237199ba -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/f3/f371db3be495e4cc9aa898db05b845b5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/f3/f371db3be495e4cc9aa898db05b845b5 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/fa/fa9be202116484c268b02844509277c1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/fa/fa9be202116484c268b02844509277c1 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/fb/fbadbcd9f202043bfa42143de5d9c861: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/fb/fbadbcd9f202043bfa42143de5d9c861 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/fc/fcae2c1ce94764692a9459e4c64654d8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/fc/fcae2c1ce94764692a9459e4c64654d8 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/fc/fccaec77acf8e43209e50c0f8c0cbe35: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/fc/fccaec77acf8e43209e50c0f8c0cbe35 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Library/metadata/fd/fdf410dead3c948398c4cef7384f96a3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lite/DragonBonesUnity/master/BirdAndCentaurDemo/Library/metadata/fd/fdf410dead3c948398c4cef7384f96a3 -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/CharactorManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b672d038247a44afb52e475e49fd30b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Bone.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c149daac6c6844134833d4792ffedf66 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Slot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68b40639b19934d1ba18904db2444f81 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Armature.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53e4559ca35c84e93b830a30a6c16880 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/Matrix.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2e004b465bad476aad12af6cea9733c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/Point.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 844567dcf1516456eafa5e32ce1369d0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/FPS.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 821f82b6c1f0c4d01953228c4b4e4875 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/Json.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58ded86a8bad44181b977be33ac434a6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8db1a093f4f874b3db5fcb80e2b31a4d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Core/DBObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7eb4dc8a121c42318adf1df68d011fb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/Frame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d98e428e5f4544bd0a5563e92ee926ae 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/BytesType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a741714bda12f4531be7766df99c1033 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Events/Event.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbadbcd9f202043bfa42143de5d9c861 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/Logger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa9be202116484c268b02844509277c1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/Matrix.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1d54fcf3985b4c3691de99c9b6f9f01 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/Animation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5049cc1eabedc4db3b45d11b2505d838 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/WorldClock.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11a2c89a64cd546f19c24acd62d53e57 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Core/DragonBones.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdf410dead3c948398c4cef7384f96a3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/ArmatureEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfd18a52a382242c89c1e1ebca9fd8e6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/FrameEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9955af53280a240caab96eb8b4bdb97c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/SoundEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90f8f29b301704db98da97c842304ba2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Factorys/BaseFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 344c2d05955d4493d8a00a27e37d5e46 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/ArmatureData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e180c73e204ff42b5b8995db20fcf159 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AtlasData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f95f06c15bc14cdb9f2a9da82578921 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/BoneData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ee3acf6ef94f4174a489d6ae32e7856 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DBTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7c0de0d3ca634b6d9badb6e14762f31 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DataParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 630b6ccba3cd040d181d06104f634e4c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DisplayData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c211d6d674681454b8ef301e15ace68b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SkeletonData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1531ec92418264f5998a58e5f5275b1f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SkinData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bf3eff016299478fb0cef94fc6f31cb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SlotData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6959cf40779540c899e8c7432b08465 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/Timeline.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fccaec77acf8e43209e50c0f8c0cbe35 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/ConstValues.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96eb3985c5a4e46d199b1f15fa4b5bf4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/DBDataUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 813fea7c3989c4ac3927f4305152912b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/TransformUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f1df475d68a64dc38cb6c4b246734bb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/ColorTransform.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5daa1206d78db414d96b66abd39f436d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/AnimationState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df8c25a6921a142d780713dd331fdeb1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/IAnimatable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 538dbcf0a01794544ba27b4afdf1ec1f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/TimelineState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8989ec3914b054e63b4cffa797fbbccb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/IDisplayBridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7b70d01fa092409ca8066ac2ca9daa3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/UnityBoneDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e8ca51167e75487897249b60e3a18f9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/AnimationEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a770d003f6e6e4f73be72add9aa626b6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/SoundEventManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35d4b46c8e3114253aa57477b56fd79d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Factorys/UnityFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8b0770a5a7464109b837fbec0aead54 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AnimationData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cb04f0fc2154457ea1db578eeffc32c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AtlasDataParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1cfb0a5d886c44ec92f81935ffa4589 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/ObjectDataParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f371db3be495e4cc9aa898db05b845b5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/TransformFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e4276e6ce22e460582ca4eda984f4a6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/TransformTimeline.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc4540f55e1da45a680ca7da4f4f3f6c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/XMLDataParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41daf1e3e4c23476f95d10ab1ac6a205 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Textures/TextureAtlas.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dddc49b5baac4b2096d88cd7bba9290 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/parseOldXMLData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ecf5e0a9f277481d98c8e106aa0a36d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Events/EventDispatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fd70ab400f1d42a29358df80544b131 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/UnityArmatureDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07de5e52f394e454f98c10d4ba12d043 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/UnityDisplayBridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a75ae5bb4178742edb49cd3b4786d61e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /DragonBones/Utils/BytesType.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class BytesType 14 | { 15 | public BytesType () 16 | { 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /DragonBones/Utils/parseOldXMLData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class parseOldXMLData 14 | { 15 | public parseOldXMLData () 16 | { 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DragonBonesUnity 2 | ======================= 3 | DragonBones Library Unity version 4 | 5 | 目录说明: 6 | ======================= 7 | DragonBones: C#版DragonBones实现 8 | Com: 某些DragonBones需要的辅助类的C#实现,例如Event, Matrix, JSON等。 9 | BirdAndCentaurDemo: 一个Untiy3D 4.3项目, 演示了DragonBones骨骼动画在Unity3D下的播放。 10 | 11 | 源码结构: 12 | ======================= 13 | DragonBones目录里, Display目录下是基于Unity3D的渲染实现, factory下面添加了UnityFactory以适配Unity3D的显示机制. 其他部分基于dragonBones 2.4版本的actionScript版本翻译过来,只是语言改成C#,算法部分没有任何改动。 14 | 15 | Known Issues: 16 | ======================= 17 | ColorTransform没有实现。 18 | 骨骼的动态添加与删除以及骨骼z深度顺序动态更改还未经测试。 19 | 子骨架未经测试。 20 | 21 | 22 | -------------------------------------------------------------------------------- /DragonBones/Objects/XMLDataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Xml; 12 | namespace DragonBones.Objects 13 | { 14 | public class XMLDataParser 15 | { 16 | 17 | // TODO:add xml parser. 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/BytesType.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class BytesType 14 | { 15 | public BytesType () 16 | { 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/parseOldXMLData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class parseOldXMLData 14 | { 15 | public parseOldXMLData () 16 | { 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/XMLDataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Xml; 12 | namespace DragonBones.Objects 13 | { 14 | public class XMLDataParser 15 | { 16 | 17 | // TODO:add xml parser. 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/BirdAndCentaurDemo.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Com/Viperstudio/Geom/Point.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Geom 12 | { 13 | public class Point 14 | { 15 | 16 | public float X; 17 | public float Y; 18 | 19 | 20 | public Point(float x = 0, float y = 0) 21 | { 22 | X = x; 23 | Y = y; 24 | } 25 | 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Com/Viperstudio/Utils/Logger.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | namespace Com.Viperstudio.Utils 13 | { 14 | public class Logger 15 | { 16 | public Logger () 17 | { 18 | 19 | } 20 | 21 | 22 | public static void Log(string str) 23 | { 24 | Debug.Log (str); 25 | } 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /DragonBones/Core/DragonBones.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Core 12 | { 13 | public class DragonBones 14 | { 15 | 16 | public const string DATA_VERSION = "2.3"; 17 | public const string VERSION = "2.4"; 18 | public const int VERSION_NUMBER = 2400; 19 | 20 | public DragonBones () 21 | { 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/Point.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Geom 12 | { 13 | public class Point 14 | { 15 | 16 | public float X; 17 | public float Y; 18 | 19 | 20 | public Point(float x = 0, float y = 0) 21 | { 22 | X = x; 23 | Y = y; 24 | } 25 | 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/Logger.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | namespace Com.Viperstudio.Utils 13 | { 14 | public class Logger 15 | { 16 | public Logger () 17 | { 18 | 19 | } 20 | 21 | 22 | public static void Log(string str) 23 | { 24 | Debug.Log (str); 25 | } 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Core/DragonBones.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Core 12 | { 13 | public class DragonBones 14 | { 15 | 16 | public const string DATA_VERSION = "2.3"; 17 | public const string VERSION = "2.4"; 18 | public const int VERSION_NUMBER = 2400; 19 | 20 | public DragonBones () 21 | { 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Com/Viperstudio/Events/Event.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Events 12 | { 13 | public class Event :EventArgs 14 | { 15 | public String EventType; 16 | 17 | public EventDispatcher Target; 18 | 19 | public Event (string eventType) :base() 20 | { 21 | this.EventType = eventType; 22 | } 23 | 24 | public virtual Event clone() 25 | { 26 | return this; 27 | } 28 | 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /DragonBones/Objects/Frame.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class Frame 14 | { 15 | public float Position; 16 | public float Duration; 17 | 18 | public string Action; 19 | public string Evt; 20 | public string Sound; 21 | 22 | public Frame() 23 | { 24 | Position = 0f; 25 | Duration = 0f; 26 | } 27 | 28 | public virtual void Dispose() 29 | { 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Events/Event.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Events 12 | { 13 | public class Event :EventArgs 14 | { 15 | public String EventType; 16 | 17 | public EventDispatcher Target; 18 | 19 | public Event (string eventType) :base() 20 | { 21 | this.EventType = eventType; 22 | } 23 | 24 | public virtual Event clone() 25 | { 26 | return this; 27 | } 28 | 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/Frame.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class Frame 14 | { 15 | public float Position; 16 | public float Duration; 17 | 18 | public string Action; 19 | public string Evt; 20 | public string Sound; 21 | 22 | public Frame() 23 | { 24 | Position = 0f; 25 | Duration = 0f; 26 | } 27 | 28 | public virtual void Dispose() 29 | { 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /DragonBones/Events/SoundEventManager.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | 13 | namespace DragonBones.Events 14 | { 15 | public class SoundEventManager :EventDispatcher 16 | { 17 | 18 | private SoundEventManager() { } 19 | private static SoundEventManager instance; 20 | public static SoundEventManager Instance 21 | { 22 | get 23 | { 24 | if(instance == null) 25 | instance = new SoundEventManager(); 26 | return instance; 27 | } 28 | } 29 | 30 | 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /Com/Viperstudio/Geom/ColorTransform.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Geom 12 | { 13 | public class ColorTransform 14 | { 15 | public float AlphaOffset = 0f; 16 | public float RedOffset = 0f; 17 | public float GreenOffset = 0f; 18 | public float BlueOffset = 0f; 19 | 20 | public float AlphaMultiplier = 0f; 21 | public float RedMultiplier = 0f; 22 | public float GreenMultiplier = 0f; 23 | public float BlueMultiplier = 0f; 24 | 25 | public ColorTransform () 26 | { 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/SoundEventManager.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | 13 | namespace DragonBones.Events 14 | { 15 | public class SoundEventManager :EventDispatcher 16 | { 17 | 18 | private SoundEventManager() { } 19 | private static SoundEventManager instance; 20 | public static SoundEventManager Instance 21 | { 22 | get 23 | { 24 | if(instance == null) 25 | instance = new SoundEventManager(); 26 | return instance; 27 | } 28 | } 29 | 30 | 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /DragonBones/Objects/DataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using System.Xml; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class DataParser 17 | { 18 | 19 | 20 | 21 | public static SkeletonData parseData(Object rawData) 22 | { 23 | if(rawData is XmlNode) 24 | { 25 | //return XMLDataParser.ParseSkeletonData(rawData as XmlNode); 26 | } 27 | else 28 | { 29 | return ObjectDataParser.ParseSkeletonData(rawData as Dictionary); 30 | } 31 | return null; 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/ColorTransform.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace Com.Viperstudio.Geom 12 | { 13 | public class ColorTransform 14 | { 15 | public float AlphaOffset = 0f; 16 | public float RedOffset = 0f; 17 | public float GreenOffset = 0f; 18 | public float BlueOffset = 0f; 19 | 20 | public float AlphaMultiplier = 0f; 21 | public float RedMultiplier = 0f; 22 | public float GreenMultiplier = 0f; 23 | public float BlueMultiplier = 0f; 24 | 25 | public ColorTransform () 26 | { 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /DragonBones/Events/ArmatureEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | namespace DragonBones.Events 13 | { 14 | public class ArmatureEvent :Event 15 | { 16 | /** 17 | * Dispatched after a successful z order update. 18 | */ 19 | public const string Z_ORDER_UPDATED = "zOrderUpdated"; 20 | 21 | public ArmatureEvent(string type) :base(type) 22 | { 23 | 24 | } 25 | 26 | /** 27 | * @private 28 | * @return 29 | */ 30 | override public Event clone() 31 | { 32 | return new ArmatureEvent(this.EventType); 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /DragonBones/Objects/DisplayData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | namespace DragonBones.Objects 13 | { 14 | public class DisplayData 15 | { 16 | public const string ARMATURE = "armature"; 17 | public const string IMAGE = "image"; 18 | 19 | public string Name; 20 | public string Type; 21 | public DBTransform Transform; 22 | public Point Pivot; 23 | 24 | public DisplayData() 25 | { 26 | Transform = new DBTransform(); 27 | } 28 | 29 | public void Dispose() 30 | { 31 | Transform = null; 32 | Pivot = null; 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using System.Xml; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class DataParser 17 | { 18 | 19 | 20 | 21 | public static SkeletonData parseData(Object rawData) 22 | { 23 | if(rawData is XmlNode) 24 | { 25 | //return XMLDataParser.ParseSkeletonData(rawData as XmlNode); 26 | } 27 | else 28 | { 29 | return ObjectDataParser.ParseSkeletonData(rawData as Dictionary); 30 | } 31 | return null; 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/ArmatureEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | namespace DragonBones.Events 13 | { 14 | public class ArmatureEvent :Event 15 | { 16 | /** 17 | * Dispatched after a successful z order update. 18 | */ 19 | public const string Z_ORDER_UPDATED = "zOrderUpdated"; 20 | 21 | public ArmatureEvent(string type) :base(type) 22 | { 23 | 24 | } 25 | 26 | /** 27 | * @private 28 | * @return 29 | */ 30 | override public Event clone() 31 | { 32 | return new ArmatureEvent(this.EventType); 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DisplayData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | namespace DragonBones.Objects 13 | { 14 | public class DisplayData 15 | { 16 | public const string ARMATURE = "armature"; 17 | public const string IMAGE = "image"; 18 | 19 | public string Name; 20 | public string Type; 21 | public DBTransform Transform; 22 | public Point Pivot; 23 | 24 | public DisplayData() 25 | { 26 | Transform = new DBTransform(); 27 | } 28 | 29 | public void Dispose() 30 | { 31 | Transform = null; 32 | Pivot = null; 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /DragonBones/Animation/IAnimatable.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Animation 12 | { 13 | 14 | /** 15 | * The IAnimatable interface defines the methods used by all animatable instance type used by the DragonBones system. 16 | * @see dragonBones.Armature 17 | * @see dragonBones.animation.WorldClock 18 | */ 19 | 20 | 21 | public interface IAnimatable 22 | { 23 | 24 | /** 25 | * Update the animation using this method typically in an ENTERFRAME Event or with a Timer. 26 | * @param The amount of second to move the playhead ahead. 27 | */ 28 | 29 | void AdvanceTime(float passedTime); 30 | 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Animation/IAnimatable.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Animation 12 | { 13 | 14 | /** 15 | * The IAnimatable interface defines the methods used by all animatable instance type used by the DragonBones system. 16 | * @see dragonBones.Armature 17 | * @see dragonBones.animation.WorldClock 18 | */ 19 | 20 | 21 | public interface IAnimatable 22 | { 23 | 24 | /** 25 | * Update the animation using this method typically in an ENTERFRAME Event or with a Timer. 26 | * @param The amount of second to move the playhead ahead. 27 | */ 28 | 29 | void AdvanceTime(float passedTime); 30 | 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /DragonBones/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // Information about this assembly is defined by the following attributes. 5 | // Change them to the values specific to your project. 6 | 7 | [assembly: AssemblyTitle("DragonBones")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("")] 12 | [assembly: AssemblyCopyright("max")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 | 20 | [assembly: AssemblyVersion("1.0.*")] 21 | 22 | // The following attributes are used to specify the signing key for the assembly, 23 | // if desired. See the Mono documentation for more information about signing. 24 | 25 | //[assembly: AssemblyDelaySign(false)] 26 | //[assembly: AssemblyKeyFile("")] 27 | 28 | -------------------------------------------------------------------------------- /DragonBones/Objects/BoneData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class BoneData 14 | { 15 | public string Name; 16 | public string Parent; 17 | public float Length; 18 | 19 | public DBTransform Global; 20 | public DBTransform Transform; 21 | 22 | public int ScaleMode; 23 | public bool FixedRotation; 24 | 25 | public BoneData() 26 | { 27 | Length = 0; 28 | Global = new DBTransform(); 29 | Transform = new DBTransform(); 30 | ScaleMode = 1; 31 | FixedRotation = false; 32 | } 33 | 34 | public void Dispose() 35 | { 36 | Global = null; 37 | Transform = null; 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/BoneData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class BoneData 14 | { 15 | public string Name; 16 | public string Parent; 17 | public float Length; 18 | 19 | public DBTransform Global; 20 | public DBTransform Transform; 21 | 22 | public int ScaleMode; 23 | public bool FixedRotation; 24 | 25 | public BoneData() 26 | { 27 | Length = 0; 28 | Global = new DBTransform(); 29 | Transform = new DBTransform(); 30 | ScaleMode = 1; 31 | FixedRotation = false; 32 | } 33 | 34 | public void Dispose() 35 | { 36 | Global = null; 37 | Transform = null; 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // Information about this assembly is defined by the following attributes. 5 | // Change them to the values specific to your project. 6 | 7 | [assembly: AssemblyTitle("DragonBones")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("")] 12 | [assembly: AssemblyCopyright("max")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 17 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 18 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 19 | 20 | [assembly: AssemblyVersion("1.0.*")] 21 | 22 | // The following attributes are used to specify the signing key for the assembly, 23 | // if desired. See the Mono documentation for more information about signing. 24 | 25 | //[assembly: AssemblyDelaySign(false)] 26 | //[assembly: AssemblyKeyFile("")] 27 | 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 DragonBones 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources/texture.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d9bda8cfc3fb4853844742af7c50ec4 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | spriteMode: 0 34 | spriteExtrude: 1 35 | spriteMeshType: 1 36 | alignment: 0 37 | spritePivot: {x: .5, y: .5} 38 | spritePixelsToUnits: 100 39 | alphaIsTransparency: 0 40 | textureType: -1 41 | buildTargetSettings: [] 42 | spriteSheet: 43 | sprites: [] 44 | spritePackingTag: 45 | userData: 46 | -------------------------------------------------------------------------------- /DragonBones/Textures/TextureAtlas.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using DragonBones.Objects; 13 | 14 | namespace DragonBones.Textures 15 | { 16 | public class TextureAtlas 17 | { 18 | public string Name; 19 | public Texture Texture; 20 | public AtlasData AtlasData; 21 | public Material Material; 22 | 23 | public TextureAtlas (Texture texture, AtlasData atlasData) 24 | { 25 | Name = atlasData.Name; 26 | Texture = texture; 27 | AtlasData = atlasData; 28 | 29 | Shader shader = Shader.Find("Sprites/Default"); 30 | Material = new Material(shader); 31 | Material.mainTexture = texture; 32 | } 33 | 34 | public System.Object GetRegion(string name) 35 | { 36 | 37 | return null; 38 | } 39 | 40 | public void Dispose() 41 | { 42 | } 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Textures/TextureAtlas.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using DragonBones.Objects; 13 | 14 | namespace DragonBones.Textures 15 | { 16 | public class TextureAtlas 17 | { 18 | public string Name; 19 | public Texture Texture; 20 | public AtlasData AtlasData; 21 | public Material Material; 22 | 23 | public TextureAtlas (Texture texture, AtlasData atlasData) 24 | { 25 | Name = atlasData.Name; 26 | Texture = texture; 27 | AtlasData = atlasData; 28 | 29 | Shader shader = Shader.Find("Sprites/Default"); 30 | Material = new Material(shader); 31 | Material.mainTexture = texture; 32 | } 33 | 34 | public System.Object GetRegion(string name) 35 | { 36 | 37 | return null; 38 | } 39 | 40 | public void Dispose() 41 | { 42 | } 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /DragonBones/Objects/AtlasData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class AtlasData 17 | { 18 | public String Name; 19 | 20 | private Dictionary _textureDatas; 21 | 22 | public AtlasData () 23 | { 24 | } 25 | 26 | public void AddTextureData(TextureData textureData) 27 | { 28 | if(_textureDatas == null) 29 | { 30 | _textureDatas = new Dictionary(); 31 | } 32 | _textureDatas.Add(textureData.Name, textureData); 33 | } 34 | 35 | public TextureData GetTextureData(string name) 36 | { 37 | if(_textureDatas!=null) 38 | { 39 | if(_textureDatas.ContainsKey(name)) 40 | { 41 | return _textureDatas[name]; 42 | } 43 | } 44 | return null; 45 | } 46 | 47 | } 48 | 49 | public class TextureData 50 | { 51 | 52 | public string Name; 53 | public float X, Y, Width, Height; 54 | 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AtlasData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class AtlasData 17 | { 18 | public String Name; 19 | 20 | private Dictionary _textureDatas; 21 | 22 | public AtlasData () 23 | { 24 | } 25 | 26 | public void AddTextureData(TextureData textureData) 27 | { 28 | if(_textureDatas == null) 29 | { 30 | _textureDatas = new Dictionary(); 31 | } 32 | _textureDatas.Add(textureData.Name, textureData); 33 | } 34 | 35 | public TextureData GetTextureData(string name) 36 | { 37 | if(_textureDatas!=null) 38 | { 39 | if(_textureDatas.ContainsKey(name)) 40 | { 41 | return _textureDatas[name]; 42 | } 43 | } 44 | return null; 45 | } 46 | 47 | } 48 | 49 | public class TextureData 50 | { 51 | 52 | public string Name; 53 | public float X, Y, Width, Height; 54 | 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /DragonBones/Objects/TransformFrame.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using System.Collections.Generic; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class TransformFrame : Frame 17 | { 18 | public float TweenEasing; 19 | public int TweenRotate; 20 | public int DisplayIndex; 21 | public bool Visible; 22 | public float ZOrder; 23 | 24 | public DBTransform Global; 25 | public DBTransform Transform; 26 | public Point Pivot; 27 | public ColorTransform Color; 28 | 29 | 30 | public TransformFrame() 31 | { 32 | 33 | TweenEasing = 0; 34 | TweenRotate = 0; 35 | DisplayIndex = 0; 36 | Visible = true; 37 | ZOrder = float.NaN; 38 | 39 | Global = new DBTransform(); 40 | Transform = new DBTransform(); 41 | Pivot = new Point(); 42 | } 43 | 44 | override public void Dispose() 45 | { 46 | base.Dispose(); 47 | Global = null; 48 | Transform = null; 49 | //SkeletonData pivots 50 | Pivot = null; 51 | Color = null; 52 | } 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /DragonBones/Events/SoundEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | using DragonBones.Animation; 13 | 14 | namespace DragonBones.Events 15 | { 16 | public class SoundEvent :Event 17 | { 18 | /** 19 | * Dispatched when the animation of the animation enter a frame containing sound labels. 20 | */ 21 | public const string SOUND = "sound"; 22 | 23 | /** 24 | * The armature that is the target of this event. 25 | */ 26 | public Armature Armature; 27 | 28 | public AnimationState AnimationState; 29 | 30 | public string Sound; 31 | 32 | /** 33 | * Creates a new SoundEvent instance. 34 | * @param type 35 | * @param cancelable 36 | */ 37 | public SoundEvent(string type) : base(type) 38 | { 39 | 40 | } 41 | 42 | /** 43 | * @private 44 | */ 45 | override public Event clone() 46 | { 47 | SoundEvent evt = new SoundEvent(EventType); 48 | evt.Armature = Armature; 49 | evt.AnimationState = AnimationState; 50 | evt.Sound = Sound; 51 | return evt; 52 | } 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/TransformFrame.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using System.Collections.Generic; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class TransformFrame : Frame 17 | { 18 | public float TweenEasing; 19 | public int TweenRotate; 20 | public int DisplayIndex; 21 | public bool Visible; 22 | public float ZOrder; 23 | 24 | public DBTransform Global; 25 | public DBTransform Transform; 26 | public Point Pivot; 27 | public ColorTransform Color; 28 | 29 | 30 | public TransformFrame() 31 | { 32 | 33 | TweenEasing = 0; 34 | TweenRotate = 0; 35 | DisplayIndex = 0; 36 | Visible = true; 37 | ZOrder = float.NaN; 38 | 39 | Global = new DBTransform(); 40 | Transform = new DBTransform(); 41 | Pivot = new Point(); 42 | } 43 | 44 | override public void Dispose() 45 | { 46 | base.Dispose(); 47 | Global = null; 48 | Transform = null; 49 | //SkeletonData pivots 50 | Pivot = null; 51 | Color = null; 52 | } 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/SoundEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | using DragonBones.Animation; 13 | 14 | namespace DragonBones.Events 15 | { 16 | public class SoundEvent :Event 17 | { 18 | /** 19 | * Dispatched when the animation of the animation enter a frame containing sound labels. 20 | */ 21 | public const string SOUND = "sound"; 22 | 23 | /** 24 | * The armature that is the target of this event. 25 | */ 26 | public Armature Armature; 27 | 28 | public AnimationState AnimationState; 29 | 30 | public string Sound; 31 | 32 | /** 33 | * Creates a new SoundEvent instance. 34 | * @param type 35 | * @param cancelable 36 | */ 37 | public SoundEvent(string type) : base(type) 38 | { 39 | 40 | } 41 | 42 | /** 43 | * @private 44 | */ 45 | override public Event clone() 46 | { 47 | SoundEvent evt = new SoundEvent(EventType); 48 | evt.Armature = Armature; 49 | evt.AnimationState = AnimationState; 50 | evt.Sound = Sound; 51 | return evt; 52 | } 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /DragonBones/Objects/TransformTimeline.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | namespace DragonBones.Objects 13 | { 14 | public class TransformTimeline :Timeline 15 | { 16 | public static TransformTimeline HIDE_TIMELINE = new TransformTimeline(); 17 | 18 | public bool Transformed; 19 | 20 | public DBTransform OriginTransform; 21 | public Point OriginPivot; 22 | 23 | private float _offset; 24 | public float Offset 25 | { 26 | get { return _offset; } 27 | set { 28 | 29 | float r = 0f; 30 | if(value!=float.NaN&&value!=0) r = value; 31 | 32 | _offset = r % 1; 33 | if(_offset < 0) 34 | { 35 | _offset += 1; 36 | } 37 | 38 | } 39 | } 40 | 41 | 42 | public TransformTimeline() 43 | { 44 | 45 | OriginTransform = new DBTransform(); 46 | OriginPivot = new Point(); 47 | _offset = 0; 48 | } 49 | 50 | override public void Dispose() 51 | { 52 | if(this == HIDE_TIMELINE) 53 | { 54 | return; 55 | } 56 | base.Dispose(); 57 | OriginTransform = null; 58 | OriginPivot = null; 59 | } 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/TransformTimeline.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | namespace DragonBones.Objects 13 | { 14 | public class TransformTimeline :Timeline 15 | { 16 | public static TransformTimeline HIDE_TIMELINE = new TransformTimeline(); 17 | 18 | public bool Transformed; 19 | 20 | public DBTransform OriginTransform; 21 | public Point OriginPivot; 22 | 23 | private float _offset; 24 | public float Offset 25 | { 26 | get { return _offset; } 27 | set { 28 | 29 | float r = 0f; 30 | if(value!=float.NaN&&value!=0) r = value; 31 | 32 | _offset = r % 1; 33 | if(_offset < 0) 34 | { 35 | _offset += 1; 36 | } 37 | 38 | } 39 | } 40 | 41 | 42 | public TransformTimeline() 43 | { 44 | 45 | OriginTransform = new DBTransform(); 46 | OriginPivot = new Point(); 47 | _offset = 0; 48 | } 49 | 50 | override public void Dispose() 51 | { 52 | if(this == HIDE_TIMELINE) 53 | { 54 | return; 55 | } 56 | base.Dispose(); 57 | OriginTransform = null; 58 | OriginPivot = null; 59 | } 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/BirdAndCentaurDemo.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2008 3 | 4 | Project("{3A33D214-E29D-3B3D-141E-26B04EC9446E}") = "BirdAndCentaurDemo", "Assembly-CSharp.csproj", "{3C0552F0-1CB3-783D-C3BC-BEC842AB708B}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | GlobalSection(MonoDevelopProperties) = preSolution 21 | StartupItem = Assembly-CSharp.csproj 22 | Policies = $0 23 | $0.TextStylePolicy = $1 24 | $1.inheritsSet = null 25 | $1.scope = text/x-csharp 26 | $0.CSharpFormattingPolicy = $2 27 | $2.inheritsSet = Mono 28 | $2.inheritsScope = text/x-csharp 29 | $2.scope = text/x-csharp 30 | $0.TextStylePolicy = $3 31 | $3.FileWidth = 120 32 | $3.TabWidth = 4 33 | $3.EolMarker = Unix 34 | $3.inheritsSet = Mono 35 | $3.inheritsScope = text/plain 36 | $3.scope = text/plain 37 | EndGlobalSection 38 | 39 | EndGlobal 40 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/BirdAndCentaurDemo-csharp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 11.00 2 | # Visual Studio 2008 3 | 4 | Project("{3A33D214-E29D-3B3D-141E-26B04EC9446E}") = "BirdAndCentaurDemo", "Assembly-CSharp-vs.csproj", "{3C0552F0-1CB3-783D-C3BC-BEC842AB708B}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {3C0552F0-1CB3-783D-C3BC-BEC842AB708B}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | GlobalSection(MonoDevelopProperties) = preSolution 21 | StartupItem = Assembly-CSharp.csproj 22 | Policies = $0 23 | $0.TextStylePolicy = $1 24 | $1.inheritsSet = null 25 | $1.scope = text/x-csharp 26 | $0.CSharpFormattingPolicy = $2 27 | $2.inheritsSet = Mono 28 | $2.inheritsScope = text/x-csharp 29 | $2.scope = text/x-csharp 30 | $0.TextStylePolicy = $3 31 | $3.FileWidth = 120 32 | $3.TabWidth = 4 33 | $3.EolMarker = Unix 34 | $3.inheritsSet = Mono 35 | $3.inheritsScope = text/plain 36 | $3.scope = text/plain 37 | EndGlobalSection 38 | 39 | EndGlobal 40 | -------------------------------------------------------------------------------- /DragonBones/Objects/SkinData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | namespace DragonBones.Objects 13 | { 14 | public class SkinData 15 | { 16 | public string Name; 17 | 18 | private List _slotDataList; 19 | public List SlotDataList 20 | { 21 | get { return _slotDataList; } 22 | } 23 | 24 | public SkinData() 25 | { 26 | _slotDataList = new List(); 27 | } 28 | 29 | public void Dispose() 30 | { 31 | int i = _slotDataList.Count; 32 | while(i -- >0) 33 | { 34 | _slotDataList[i].Dispose(); 35 | } 36 | 37 | _slotDataList.Clear(); 38 | 39 | } 40 | 41 | public SlotData getSlotData(string slotName) 42 | { 43 | int i = _slotDataList.Count; 44 | while(i -- >0) 45 | { 46 | if(_slotDataList[i].Name == slotName) 47 | { 48 | return _slotDataList[i]; 49 | } 50 | } 51 | return null; 52 | } 53 | 54 | public void AddSlotData(SlotData slotData) 55 | { 56 | if(slotData == null) 57 | { 58 | throw new ArgumentException(); 59 | } 60 | 61 | if (_slotDataList.IndexOf(slotData) < 0) 62 | { 63 | 64 | _slotDataList.Add(slotData); 65 | 66 | } 67 | else 68 | { 69 | throw new ArgumentException(); 70 | } 71 | } 72 | } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SkinData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | namespace DragonBones.Objects 13 | { 14 | public class SkinData 15 | { 16 | public string Name; 17 | 18 | private List _slotDataList; 19 | public List SlotDataList 20 | { 21 | get { return _slotDataList; } 22 | } 23 | 24 | public SkinData() 25 | { 26 | _slotDataList = new List(); 27 | } 28 | 29 | public void Dispose() 30 | { 31 | int i = _slotDataList.Count; 32 | while(i -- >0) 33 | { 34 | _slotDataList[i].Dispose(); 35 | } 36 | 37 | _slotDataList.Clear(); 38 | 39 | } 40 | 41 | public SlotData getSlotData(string slotName) 42 | { 43 | int i = _slotDataList.Count; 44 | while(i -- >0) 45 | { 46 | if(_slotDataList[i].Name == slotName) 47 | { 48 | return _slotDataList[i]; 49 | } 50 | } 51 | return null; 52 | } 53 | 54 | public void AddSlotData(SlotData slotData) 55 | { 56 | if(slotData == null) 57 | { 58 | throw new ArgumentException(); 59 | } 60 | 61 | if (_slotDataList.IndexOf(slotData) < 0) 62 | { 63 | 64 | _slotDataList.Add(slotData); 65 | 66 | } 67 | else 68 | { 69 | throw new ArgumentException(); 70 | } 71 | } 72 | } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /DragonBones/Objects/Timeline.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | namespace DragonBones.Objects 13 | { 14 | public class Timeline 15 | { 16 | private List _frameList; 17 | public List FrameList 18 | { 19 | get { return _frameList; } 20 | } 21 | 22 | private float _duration; 23 | public float Duration 24 | { 25 | get { return _duration; } 26 | set { _duration = value >= 0 ? value : 0; } 27 | } 28 | 29 | private float _scale; 30 | public float Scale 31 | { 32 | get { return _scale; } 33 | set { _scale = value >= 0 ? value : 1;} 34 | } 35 | 36 | public Timeline() 37 | { 38 | _frameList = new List(); 39 | _duration = 0; 40 | _scale = 1; 41 | } 42 | 43 | public virtual void Dispose() 44 | { 45 | int i = _frameList.Count; 46 | while(i -- > 0) 47 | { 48 | _frameList[i].Dispose(); 49 | } 50 | 51 | _frameList.Clear(); 52 | _frameList = null; 53 | } 54 | 55 | public void AddFrame(Frame frame) 56 | { 57 | if(frame == null) 58 | { 59 | throw new ArgumentException(); 60 | } 61 | 62 | if(_frameList.IndexOf(frame) < 0) 63 | { 64 | 65 | _frameList.Add(frame); 66 | 67 | } 68 | else 69 | { 70 | throw new ArgumentException(); 71 | } 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/Timeline.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | namespace DragonBones.Objects 13 | { 14 | public class Timeline 15 | { 16 | private List _frameList; 17 | public List FrameList 18 | { 19 | get { return _frameList; } 20 | } 21 | 22 | private float _duration; 23 | public float Duration 24 | { 25 | get { return _duration; } 26 | set { _duration = value >= 0 ? value : 0; } 27 | } 28 | 29 | private float _scale; 30 | public float Scale 31 | { 32 | get { return _scale; } 33 | set { _scale = value >= 0 ? value : 1;} 34 | } 35 | 36 | public Timeline() 37 | { 38 | _frameList = new List(); 39 | _duration = 0; 40 | _scale = 1; 41 | } 42 | 43 | public virtual void Dispose() 44 | { 45 | int i = _frameList.Count; 46 | while(i -- > 0) 47 | { 48 | _frameList[i].Dispose(); 49 | } 50 | 51 | _frameList.Clear(); 52 | _frameList = null; 53 | } 54 | 55 | public void AddFrame(Frame frame) 56 | { 57 | if(frame == null) 58 | { 59 | throw new ArgumentException(); 60 | } 61 | 62 | if(_frameList.IndexOf(frame) < 0) 63 | { 64 | 65 | _frameList.Add(frame); 66 | 67 | } 68 | else 69 | { 70 | throw new ArgumentException(); 71 | } 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /DragonBones/Objects/SlotData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | 13 | namespace DragonBones.Objects 14 | { 15 | public class SlotData 16 | { 17 | public string Name; 18 | public string Parent; 19 | public float ZOrder; 20 | public string BlendMode; 21 | 22 | private List _displayDataList; 23 | public List DisplayDataList 24 | { 25 | get { return _displayDataList; } 26 | } 27 | 28 | public SlotData() 29 | { 30 | _displayDataList = new List(); 31 | ZOrder = 0; 32 | BlendMode = "normal"; 33 | } 34 | 35 | public void Dispose() 36 | { 37 | int i = _displayDataList.Count; 38 | while(i -- >0) 39 | { 40 | _displayDataList[i].Dispose(); 41 | } 42 | 43 | _displayDataList.Clear(); 44 | 45 | } 46 | 47 | public void AddDisplayData(DisplayData displayData) 48 | { 49 | if(displayData == null) 50 | { 51 | throw new ArgumentException(); 52 | } 53 | if (_displayDataList.IndexOf(displayData) < 0) 54 | { 55 | 56 | _displayDataList.Add(displayData); 57 | 58 | } 59 | else 60 | { 61 | throw new ArgumentException(); 62 | } 63 | } 64 | 65 | public DisplayData GetDisplayData(string displayName) 66 | { 67 | int i = _displayDataList.Count; 68 | while(i -- >0) 69 | { 70 | if(_displayDataList[i].Name == displayName) 71 | { 72 | return _displayDataList[i]; 73 | } 74 | } 75 | 76 | return null; 77 | } 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /DragonBones/Objects/AtlasDataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using DragonBones.Utils; 13 | using Com.Viperstudio.Utils; 14 | 15 | namespace DragonBones.Objects 16 | { 17 | public class AtlasDataParser 18 | { 19 | 20 | public AtlasDataParser () 21 | { 22 | } 23 | 24 | 25 | public static AtlasData ParseAtlasData(Dictionary rawData) 26 | { 27 | if(rawData == null) 28 | { 29 | throw new ArgumentException(); 30 | } 31 | 32 | AtlasData data = new AtlasData(); 33 | data.Name = rawData[ConstValues.A_NAME] as String; 34 | 35 | foreach(Dictionary textureObject in rawData[ConstValues.A_SUBTEXTURE] as List) 36 | { 37 | 38 | data.AddTextureData(parseTextureData(textureObject as Dictionary)); 39 | } 40 | 41 | return data; 42 | 43 | } 44 | 45 | private static TextureData parseTextureData(Dictionary textureRawData) 46 | { 47 | TextureData textureData = new TextureData(); 48 | textureData.Name = textureRawData[ConstValues.A_NAME].ToString(); 49 | textureData.X = float.Parse(textureRawData[ConstValues.A_X].ToString()); 50 | textureData.Y = float.Parse(textureRawData[ConstValues.A_Y].ToString()); 51 | textureData.Width = float.Parse(textureRawData[ConstValues.A_WIDTH].ToString()); 52 | textureData.Height = float.Parse(textureRawData[ConstValues.A_HEIGHT].ToString()); 53 | return textureData; 54 | 55 | } 56 | 57 | 58 | 59 | } 60 | } 61 | 62 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SlotData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | 13 | namespace DragonBones.Objects 14 | { 15 | public class SlotData 16 | { 17 | public string Name; 18 | public string Parent; 19 | public float ZOrder; 20 | public string BlendMode; 21 | 22 | private List _displayDataList; 23 | public List DisplayDataList 24 | { 25 | get { return _displayDataList; } 26 | } 27 | 28 | public SlotData() 29 | { 30 | _displayDataList = new List(); 31 | ZOrder = 0; 32 | BlendMode = "normal"; 33 | } 34 | 35 | public void Dispose() 36 | { 37 | int i = _displayDataList.Count; 38 | while(i -- >0) 39 | { 40 | _displayDataList[i].Dispose(); 41 | } 42 | 43 | _displayDataList.Clear(); 44 | 45 | } 46 | 47 | public void AddDisplayData(DisplayData displayData) 48 | { 49 | if(displayData == null) 50 | { 51 | throw new ArgumentException(); 52 | } 53 | if (_displayDataList.IndexOf(displayData) < 0) 54 | { 55 | 56 | _displayDataList.Add(displayData); 57 | 58 | } 59 | else 60 | { 61 | throw new ArgumentException(); 62 | } 63 | } 64 | 65 | public DisplayData GetDisplayData(string displayName) 66 | { 67 | int i = _displayDataList.Count; 68 | while(i -- >0) 69 | { 70 | if(_displayDataList[i].Name == displayName) 71 | { 72 | return _displayDataList[i]; 73 | } 74 | } 75 | 76 | return null; 77 | } 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AtlasDataParser.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using DragonBones.Utils; 13 | using Com.Viperstudio.Utils; 14 | 15 | namespace DragonBones.Objects 16 | { 17 | public class AtlasDataParser 18 | { 19 | 20 | public AtlasDataParser () 21 | { 22 | } 23 | 24 | 25 | public static AtlasData ParseAtlasData(Dictionary rawData) 26 | { 27 | if(rawData == null) 28 | { 29 | throw new ArgumentException(); 30 | } 31 | 32 | AtlasData data = new AtlasData(); 33 | data.Name = rawData[ConstValues.A_NAME] as String; 34 | 35 | foreach(Dictionary textureObject in rawData[ConstValues.A_SUBTEXTURE] as List) 36 | { 37 | 38 | data.AddTextureData(parseTextureData(textureObject as Dictionary)); 39 | } 40 | 41 | return data; 42 | 43 | } 44 | 45 | private static TextureData parseTextureData(Dictionary textureRawData) 46 | { 47 | TextureData textureData = new TextureData(); 48 | textureData.Name = textureRawData[ConstValues.A_NAME].ToString(); 49 | textureData.X = float.Parse(textureRawData[ConstValues.A_X].ToString()); 50 | textureData.Y = float.Parse(textureRawData[ConstValues.A_Y].ToString()); 51 | textureData.Width = float.Parse(textureRawData[ConstValues.A_WIDTH].ToString()); 52 | textureData.Height = float.Parse(textureRawData[ConstValues.A_HEIGHT].ToString()); 53 | return textureData; 54 | 55 | } 56 | 57 | 58 | 59 | } 60 | } 61 | 62 | -------------------------------------------------------------------------------- /DragonBones/Events/FrameEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | using DragonBones.Animation; 13 | 14 | namespace DragonBones.Events 15 | { 16 | public class FrameEvent :Event 17 | { 18 | public static string MOVEMENT_FRAME_EVENT 19 | { 20 | get { return ANIMATION_FRAME_EVENT; } 21 | } 22 | 23 | /** 24 | * Dispatched when the animation of the armatrue enter a frame. 25 | */ 26 | public const string ANIMATION_FRAME_EVENT = "animationFrameEvent"; 27 | 28 | /** 29 | * 30 | */ 31 | public const string BONE_FRAME_EVENT ="boneFrameEvent"; 32 | 33 | /** 34 | * The entered frame label. 35 | */ 36 | public string FrameLabel; 37 | 38 | public Bone Bone; 39 | 40 | /** 41 | * The armature that is the target of this event. 42 | */ 43 | public Armature Armature 44 | { 45 | get { return Target as Armature; } 46 | } 47 | 48 | /** 49 | * The animationState instance. 50 | */ 51 | public AnimationState AnimationState; 52 | 53 | /** 54 | * Creates a new FrameEvent instance. 55 | * @param type 56 | * @param cancelable 57 | */ 58 | public FrameEvent(string type) :base(type) 59 | { 60 | 61 | } 62 | 63 | /** 64 | * @private 65 | * 66 | * @return An exact duplicate of the current object. 67 | */ 68 | override public Event clone() 69 | { 70 | FrameEvent evt = new FrameEvent(this.EventType); 71 | evt.AnimationState = AnimationState; 72 | evt.Bone = Bone; 73 | evt.FrameLabel = FrameLabel; 74 | return evt; 75 | } 76 | } 77 | } 78 | 79 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/FrameEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Events; 12 | using DragonBones.Animation; 13 | 14 | namespace DragonBones.Events 15 | { 16 | public class FrameEvent :Event 17 | { 18 | public static string MOVEMENT_FRAME_EVENT 19 | { 20 | get { return ANIMATION_FRAME_EVENT; } 21 | } 22 | 23 | /** 24 | * Dispatched when the animation of the armatrue enter a frame. 25 | */ 26 | public const string ANIMATION_FRAME_EVENT = "animationFrameEvent"; 27 | 28 | /** 29 | * 30 | */ 31 | public const string BONE_FRAME_EVENT ="boneFrameEvent"; 32 | 33 | /** 34 | * The entered frame label. 35 | */ 36 | public string FrameLabel; 37 | 38 | public Bone Bone; 39 | 40 | /** 41 | * The armature that is the target of this event. 42 | */ 43 | public Armature Armature 44 | { 45 | get { return Target as Armature; } 46 | } 47 | 48 | /** 49 | * The animationState instance. 50 | */ 51 | public AnimationState AnimationState; 52 | 53 | /** 54 | * Creates a new FrameEvent instance. 55 | * @param type 56 | * @param cancelable 57 | */ 58 | public FrameEvent(string type) :base(type) 59 | { 60 | 61 | } 62 | 63 | /** 64 | * @private 65 | * 66 | * @return An exact duplicate of the current object. 67 | */ 68 | override public Event clone() 69 | { 70 | FrameEvent evt = new FrameEvent(this.EventType); 71 | evt.AnimationState = AnimationState; 72 | evt.Bone = Bone; 73 | evt.FrameLabel = FrameLabel; 74 | return evt; 75 | } 76 | } 77 | } 78 | 79 | -------------------------------------------------------------------------------- /DragonBones/Objects/AnimationData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class AnimationData :Timeline 17 | { 18 | public uint FrameRate; 19 | public string Name; 20 | public int Loop; 21 | public float TweenEasing; 22 | 23 | private Dictionary _timelines; 24 | public Dictionary Timelines 25 | { 26 | get { return _timelines; } 27 | } 28 | 29 | private float _fadeTime; 30 | public float FadeInTime 31 | { 32 | get { return _fadeTime; } 33 | set { 34 | if(float.IsNaN(value)) 35 | { 36 | value = 0; 37 | } 38 | _fadeTime = value; 39 | 40 | } 41 | } 42 | 43 | public AnimationData() 44 | { 45 | Loop = 0; 46 | TweenEasing = float.NaN; 47 | 48 | _timelines = new Dictionary(); 49 | 50 | _fadeTime = 0; 51 | } 52 | 53 | override public void Dispose() 54 | { 55 | 56 | foreach(KeyValuePair timeline in _timelines) 57 | { 58 | (timeline.Value as TransformTimeline).Dispose(); 59 | } 60 | _timelines = null; 61 | } 62 | 63 | public TransformTimeline GetTimeline(string timelineName) 64 | { 65 | if(_timelines.ContainsKey(timelineName)) 66 | return _timelines[timelineName] as TransformTimeline; 67 | else 68 | return null; 69 | } 70 | 71 | public void AddTimeline(TransformTimeline timeline, string timelineName) 72 | { 73 | if(timeline == null) 74 | { 75 | throw new ArgumentException(); 76 | } 77 | 78 | _timelines[timelineName] = timeline; 79 | } 80 | } 81 | } 82 | 83 | -------------------------------------------------------------------------------- /DragonBones/Display/IDisplayBridge.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using DragonBones.Objects; 13 | 14 | namespace DragonBones.Display 15 | { 16 | public interface IDisplayBridge 17 | { 18 | 19 | bool Visible { get; set;} 20 | 21 | 22 | /** 23 | * Indicates the original display object relative to specific display engine. 24 | */ 25 | Object Display { get; set; } 26 | 27 | /** 28 | * Cleans up resources used by this IDisplayBridge instance. 29 | */ 30 | void Dispose(); 31 | 32 | /** 33 | * Updates the transform of the display object 34 | * @param matrix 35 | * @param transform 36 | */ 37 | void UpdateTransform(Matrix matrix, DBTransform transform); 38 | 39 | /** 40 | * Updates the color of the display object 41 | * @param a 42 | * @param r 43 | * @param g 44 | * @param b 45 | * @param aM 46 | * @param rM 47 | * @param gM 48 | * @param bM 49 | */ 50 | void UpdateColor( 51 | float aOffset, 52 | float rOffset, 53 | float gOffset, 54 | float bOffset, 55 | float aMultiplier, 56 | float rMultiplier, 57 | float gMultiplier, 58 | float bMultiplier 59 | ); 60 | 61 | /** 62 | * Update the blend mode of the display object 63 | * @param blendMode The blend mode to use. 64 | */ 65 | void UpdateBlendMode(string blendMode); 66 | 67 | /** 68 | * Adds the original display object to another display object. 69 | * @param container 70 | * @param index 71 | */ 72 | void AddDisplay(Object container, float index = -1f); 73 | 74 | /** 75 | * remove the original display object from its parent. 76 | */ 77 | 78 | void RemoveDisplay(); 79 | 80 | 81 | } 82 | } 83 | 84 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/AnimationData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | 14 | namespace DragonBones.Objects 15 | { 16 | public class AnimationData :Timeline 17 | { 18 | public uint FrameRate; 19 | public string Name; 20 | public int Loop; 21 | public float TweenEasing; 22 | 23 | private Dictionary _timelines; 24 | public Dictionary Timelines 25 | { 26 | get { return _timelines; } 27 | } 28 | 29 | private float _fadeTime; 30 | public float FadeInTime 31 | { 32 | get { return _fadeTime; } 33 | set { 34 | if(float.IsNaN(value)) 35 | { 36 | value = 0; 37 | } 38 | _fadeTime = value; 39 | 40 | } 41 | } 42 | 43 | public AnimationData() 44 | { 45 | Loop = 0; 46 | TweenEasing = float.NaN; 47 | 48 | _timelines = new Dictionary(); 49 | 50 | _fadeTime = 0; 51 | } 52 | 53 | override public void Dispose() 54 | { 55 | 56 | foreach(KeyValuePair timeline in _timelines) 57 | { 58 | (timeline.Value as TransformTimeline).Dispose(); 59 | } 60 | _timelines = null; 61 | } 62 | 63 | public TransformTimeline GetTimeline(string timelineName) 64 | { 65 | if(_timelines.ContainsKey(timelineName)) 66 | return _timelines[timelineName] as TransformTimeline; 67 | else 68 | return null; 69 | } 70 | 71 | public void AddTimeline(TransformTimeline timeline, string timelineName) 72 | { 73 | if(timeline == null) 74 | { 75 | throw new ArgumentException(); 76 | } 77 | 78 | _timelines[timelineName] = timeline; 79 | } 80 | } 81 | } 82 | 83 | -------------------------------------------------------------------------------- /Com/Viperstudio/Geom/Matrix.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Utils; 12 | 13 | namespace Com.Viperstudio.Geom 14 | { 15 | 16 | public class Matrix 17 | { 18 | 19 | public Com.Viperstudio.Utils.Matrix matrix; 20 | 21 | public float A { 22 | get { return (float)matrix.mat [0, 0]; } 23 | set { matrix.mat [0, 0] = value; } 24 | } 25 | 26 | public float B { 27 | get { return (float)matrix.mat [0, 1] ; } 28 | set { matrix.mat [0, 1] = value; } 29 | } 30 | 31 | public float C { 32 | get { return (float)matrix.mat [1, 0] ; } 33 | set { matrix.mat [1, 0] = value; } 34 | } 35 | 36 | public float D { 37 | get { return (float)matrix.mat [1, 1]; } 38 | set { matrix.mat [1, 1] = value; } 39 | } 40 | 41 | public float Tx { 42 | get { return (float)matrix.mat [2, 0] ;} 43 | set { matrix.mat [2, 0] = value; } 44 | } 45 | 46 | public float Ty { 47 | get { return (float)matrix.mat [2, 1]; } 48 | set { matrix.mat [2, 1] = value; } 49 | } 50 | 51 | 52 | 53 | public Matrix (float a = 1f, float b = 0f, float c = 0f, float d = 1f, float tx =0f, float ty = 0f) 54 | { 55 | matrix = new Com.Viperstudio.Utils.Matrix (3, 3); 56 | matrix.mat [0, 0] = a; 57 | matrix.mat [1, 0] = c; 58 | matrix.mat [2, 0] = tx; 59 | matrix.mat [0, 1] = b; 60 | matrix.mat [1, 1] = d; 61 | matrix.mat [2, 1] = ty; 62 | matrix.mat [0, 2] = 0; 63 | matrix.mat [1, 2] = 0; 64 | matrix.mat [2, 2] = 1; 65 | 66 | 67 | } 68 | 69 | public void Invert() 70 | { 71 | 72 | matrix = matrix.Invert (); 73 | 74 | 75 | 76 | } 77 | 78 | public void StrassenMultiple (Com.Viperstudio.Geom.Matrix m) 79 | { 80 | matrix = matrix * m.matrix; 81 | } 82 | 83 | 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /DragonBones/Objects/DBTransform.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class DBTransform 14 | { 15 | /** 16 | * Position on the x axis. 17 | */ 18 | public float X; 19 | /** 20 | * Position on the y axis. 21 | */ 22 | public float Y; 23 | /** 24 | * Skew on the x axis. 25 | */ 26 | public float SkewX; 27 | /** 28 | * skew on the y axis. 29 | */ 30 | public float SkewY; 31 | /** 32 | * Scale on the x axis. 33 | */ 34 | public float ScaleX; 35 | /** 36 | * Scale on the y axis. 37 | */ 38 | public float ScaleY; 39 | /** 40 | * The rotation of that DBTransform instance. 41 | */ 42 | public float Rotation 43 | { 44 | get { return SkewX; } 45 | set { SkewX = SkewY = value; } 46 | } 47 | 48 | /** 49 | * Creat a new DBTransform instance. 50 | */ 51 | public DBTransform() 52 | { 53 | X = 0; 54 | Y = 0; 55 | SkewX = 0; 56 | SkewY = 0; 57 | ScaleX = 1; 58 | ScaleY = 1; 59 | } 60 | /** 61 | * Copy all properties from this DBTransform instance to the passed DBTransform instance. 62 | * @param node 63 | */ 64 | public void Copy(DBTransform transform) 65 | { 66 | X = transform.X; 67 | Y = transform.Y; 68 | SkewX = transform.SkewX; 69 | SkewY = transform.SkewY; 70 | ScaleX = transform.ScaleX; 71 | ScaleY = transform.ScaleY; 72 | } 73 | 74 | /** 75 | * Get a string representing all DBTransform property values. 76 | * @return String All property values in a formatted string. 77 | */ 78 | 79 | public string toString() 80 | { 81 | string str = "X:" + X + " Y:" + Y + " SkewX:" + SkewX + " SkewY:" + SkewY + " ScaleX:" + ScaleX + " ScaleY:" + ScaleY; 82 | return str; 83 | } 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/IDisplayBridge.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using DragonBones.Objects; 13 | 14 | namespace DragonBones.Display 15 | { 16 | public interface IDisplayBridge 17 | { 18 | 19 | bool Visible { get; set;} 20 | 21 | 22 | /** 23 | * Indicates the original display object relative to specific display engine. 24 | */ 25 | Object Display { get; set; } 26 | 27 | /** 28 | * Cleans up resources used by this IDisplayBridge instance. 29 | */ 30 | void Dispose(); 31 | 32 | /** 33 | * Updates the transform of the display object 34 | * @param matrix 35 | * @param transform 36 | */ 37 | void UpdateTransform(Matrix matrix, DBTransform transform); 38 | 39 | /** 40 | * Updates the color of the display object 41 | * @param a 42 | * @param r 43 | * @param g 44 | * @param b 45 | * @param aM 46 | * @param rM 47 | * @param gM 48 | * @param bM 49 | */ 50 | void UpdateColor( 51 | float aOffset, 52 | float rOffset, 53 | float gOffset, 54 | float bOffset, 55 | float aMultiplier, 56 | float rMultiplier, 57 | float gMultiplier, 58 | float bMultiplier 59 | ); 60 | 61 | /** 62 | * Update the blend mode of the display object 63 | * @param blendMode The blend mode to use. 64 | */ 65 | void UpdateBlendMode(string blendMode); 66 | 67 | /** 68 | * Adds the original display object to another display object. 69 | * @param container 70 | * @param index 71 | */ 72 | void AddDisplay(Object container, float index = -1f); 73 | 74 | /** 75 | * remove the original display object from its parent. 76 | */ 77 | 78 | void RemoveDisplay(); 79 | 80 | 81 | } 82 | } 83 | 84 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Geom/Matrix.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Utils; 12 | 13 | namespace Com.Viperstudio.Geom 14 | { 15 | 16 | public class Matrix 17 | { 18 | 19 | public Com.Viperstudio.Utils.Matrix matrix; 20 | 21 | public float A { 22 | get { return (float)matrix.mat [0, 0]; } 23 | set { matrix.mat [0, 0] = value; } 24 | } 25 | 26 | public float B { 27 | get { return (float)matrix.mat [0, 1] ; } 28 | set { matrix.mat [0, 1] = value; } 29 | } 30 | 31 | public float C { 32 | get { return (float)matrix.mat [1, 0] ; } 33 | set { matrix.mat [1, 0] = value; } 34 | } 35 | 36 | public float D { 37 | get { return (float)matrix.mat [1, 1]; } 38 | set { matrix.mat [1, 1] = value; } 39 | } 40 | 41 | public float Tx { 42 | get { return (float)matrix.mat [2, 0] ;} 43 | set { matrix.mat [2, 0] = value; } 44 | } 45 | 46 | public float Ty { 47 | get { return (float)matrix.mat [2, 1]; } 48 | set { matrix.mat [2, 1] = value; } 49 | } 50 | 51 | 52 | 53 | public Matrix (float a = 1f, float b = 0f, float c = 0f, float d = 1f, float tx =0f, float ty = 0f) 54 | { 55 | matrix = new Com.Viperstudio.Utils.Matrix (3, 3); 56 | matrix.mat [0, 0] = a; 57 | matrix.mat [1, 0] = c; 58 | matrix.mat [2, 0] = tx; 59 | matrix.mat [0, 1] = b; 60 | matrix.mat [1, 1] = d; 61 | matrix.mat [2, 1] = ty; 62 | matrix.mat [0, 2] = 0; 63 | matrix.mat [1, 2] = 0; 64 | matrix.mat [2, 2] = 1; 65 | 66 | 67 | } 68 | 69 | public void Invert() 70 | { 71 | 72 | matrix = matrix.Invert (); 73 | 74 | 75 | 76 | } 77 | 78 | public void StrassenMultiple (Com.Viperstudio.Geom.Matrix m) 79 | { 80 | matrix = matrix * m.matrix; 81 | } 82 | 83 | 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/DBTransform.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Objects 12 | { 13 | public class DBTransform 14 | { 15 | /** 16 | * Position on the x axis. 17 | */ 18 | public float X; 19 | /** 20 | * Position on the y axis. 21 | */ 22 | public float Y; 23 | /** 24 | * Skew on the x axis. 25 | */ 26 | public float SkewX; 27 | /** 28 | * skew on the y axis. 29 | */ 30 | public float SkewY; 31 | /** 32 | * Scale on the x axis. 33 | */ 34 | public float ScaleX; 35 | /** 36 | * Scale on the y axis. 37 | */ 38 | public float ScaleY; 39 | /** 40 | * The rotation of that DBTransform instance. 41 | */ 42 | public float Rotation 43 | { 44 | get { return SkewX; } 45 | set { SkewX = SkewY = value; } 46 | } 47 | 48 | /** 49 | * Creat a new DBTransform instance. 50 | */ 51 | public DBTransform() 52 | { 53 | X = 0; 54 | Y = 0; 55 | SkewX = 0; 56 | SkewY = 0; 57 | ScaleX = 1; 58 | ScaleY = 1; 59 | } 60 | /** 61 | * Copy all properties from this DBTransform instance to the passed DBTransform instance. 62 | * @param node 63 | */ 64 | public void Copy(DBTransform transform) 65 | { 66 | X = transform.X; 67 | Y = transform.Y; 68 | SkewX = transform.SkewX; 69 | SkewY = transform.SkewY; 70 | ScaleX = transform.ScaleX; 71 | ScaleY = transform.ScaleY; 72 | } 73 | 74 | /** 75 | * Get a string representing all DBTransform property values. 76 | * @return String All property values in a formatted string. 77 | */ 78 | 79 | public string toString() 80 | { 81 | string str = "X:" + X + " Y:" + Y + " SkewX:" + SkewX + " SkewY:" + SkewY + " ScaleX:" + ScaleX + " ScaleY:" + ScaleY; 82 | return str; 83 | } 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /DragonBones/Utils/TransformUtil.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using Com.Viperstudio.Utils; 13 | using DragonBones.Objects; 14 | 15 | namespace DragonBones.Utils 16 | { 17 | public class TransformUtil 18 | { 19 | private const float HALF_PI = (float)Math.PI * 0.5f; 20 | private const float DOUBLE_PI = (float)Math.PI * 2f; 21 | 22 | private static Com.Viperstudio.Geom.Matrix _helpMatrix = new Com.Viperstudio.Geom.Matrix(); 23 | 24 | public static void TransformPointWithParent(DBTransform transform, DBTransform parent) 25 | { 26 | TransformToMatrix(parent, _helpMatrix); 27 | 28 | _helpMatrix.Invert(); 29 | 30 | float x = transform.X; 31 | float y = transform.Y; 32 | 33 | transform.X = _helpMatrix.A * x + _helpMatrix.C * y + _helpMatrix.Tx; 34 | transform.Y = _helpMatrix.D * y + _helpMatrix.B * x + _helpMatrix.Ty; 35 | 36 | transform.SkewX = FormatRadian(transform.SkewX - parent.SkewX); 37 | transform.SkewY = FormatRadian(transform.SkewY - parent.SkewY); 38 | } 39 | 40 | public static void TransformToMatrix(DBTransform transform, Com.Viperstudio.Geom.Matrix matrix) 41 | { 42 | matrix.A = transform.ScaleX * (float)Math.Cos (transform.SkewY); 43 | matrix.B = transform.ScaleX * (float)Math.Sin (transform.SkewY); 44 | matrix.C = -transform.ScaleY * (float)Math.Sin(transform.SkewX); 45 | matrix.D = transform.ScaleY * (float)Math.Cos(transform.SkewX); 46 | matrix.Tx = transform.X; 47 | matrix.Ty = transform.Y; 48 | } 49 | 50 | public static float FormatRadian(float radian) 51 | { 52 | radian %= DOUBLE_PI; 53 | if (radian > Math.PI) 54 | { 55 | radian -= DOUBLE_PI; 56 | } 57 | if (radian < -Math.PI) 58 | { 59 | radian += DOUBLE_PI; 60 | } 61 | return radian; 62 | } 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/TransformUtil.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using Com.Viperstudio.Utils; 13 | using DragonBones.Objects; 14 | 15 | namespace DragonBones.Utils 16 | { 17 | public class TransformUtil 18 | { 19 | private const float HALF_PI = (float)Math.PI * 0.5f; 20 | private const float DOUBLE_PI = (float)Math.PI * 2f; 21 | 22 | private static Com.Viperstudio.Geom.Matrix _helpMatrix = new Com.Viperstudio.Geom.Matrix(); 23 | 24 | public static void TransformPointWithParent(DBTransform transform, DBTransform parent) 25 | { 26 | TransformToMatrix(parent, _helpMatrix); 27 | 28 | _helpMatrix.Invert(); 29 | 30 | float x = transform.X; 31 | float y = transform.Y; 32 | 33 | transform.X = _helpMatrix.A * x + _helpMatrix.C * y + _helpMatrix.Tx; 34 | transform.Y = _helpMatrix.D * y + _helpMatrix.B * x + _helpMatrix.Ty; 35 | 36 | transform.SkewX = FormatRadian(transform.SkewX - parent.SkewX); 37 | transform.SkewY = FormatRadian(transform.SkewY - parent.SkewY); 38 | } 39 | 40 | public static void TransformToMatrix(DBTransform transform, Com.Viperstudio.Geom.Matrix matrix) 41 | { 42 | matrix.A = transform.ScaleX * (float)Math.Cos (transform.SkewY); 43 | matrix.B = transform.ScaleX * (float)Math.Sin (transform.SkewY); 44 | matrix.C = -transform.ScaleY * (float)Math.Sin(transform.SkewX); 45 | matrix.D = transform.ScaleY * (float)Math.Cos(transform.SkewX); 46 | matrix.Tx = transform.X; 47 | matrix.Ty = transform.Y; 48 | } 49 | 50 | public static float FormatRadian(float radian) 51 | { 52 | radian %= DOUBLE_PI; 53 | if (radian > Math.PI) 54 | { 55 | radian -= DOUBLE_PI; 56 | } 57 | if (radian < -Math.PI) 58 | { 59 | radian += DOUBLE_PI; 60 | } 61 | return radian; 62 | } 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /Com/Viperstudio/Utils/FPS.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using UnityEngine; 11 | using System.Collections; 12 | 13 | public class FPS : MonoBehaviour 14 | { 15 | 16 | // Attach this to a GUIText to make a frames/second indicator. 17 | // 18 | // It calculates frames/second over each updateInterval, 19 | // so the display does not keep changing wildly. 20 | // 21 | // It is also fairly accurate at very low FPS counts (<10). 22 | // We do this not by simply counting frames per interval, but 23 | // by accumulating FPS for each frame. This way we end up with 24 | // correct overall FPS even if the interval renders something like 25 | // 5.5 frames. 26 | 27 | public float updateInterval = 0.5F; 28 | 29 | private float accum = 0; // FPS accumulated over the interval 30 | private int frames = 0; // Frames drawn over the interval 31 | private float timeleft; // Left time for current interval 32 | 33 | void Start() 34 | { 35 | if( !guiText ) 36 | { 37 | Debug.Log("UtilityFramesPerSecond needs a GUIText component!"); 38 | enabled = false; 39 | return; 40 | } 41 | timeleft = updateInterval; 42 | } 43 | 44 | void Update() 45 | { 46 | timeleft -= Time.deltaTime; 47 | accum += Time.timeScale/Time.deltaTime; 48 | ++frames; 49 | 50 | // Interval ended - update GUI text and start new interval 51 | if( timeleft <= 0.0 ) 52 | { 53 | // display two fractional digits (f2 format) 54 | float fps = accum/frames; 55 | string format = System.String.Format("{0:F2} FPS",fps); 56 | guiText.text = format; 57 | 58 | if(fps < 30) 59 | guiText.material.color = Color.yellow; 60 | else 61 | if(fps < 10) 62 | guiText.material.color = Color.red; 63 | else 64 | guiText.material.color = Color.green; 65 | // DebugConsole.Log(format,level); 66 | timeleft = updateInterval; 67 | accum = 0.0F; 68 | frames = 0; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/Resources/texture.json.txt: -------------------------------------------------------------------------------- 1 | {"SubTexture":[{"name":"bird/right fore wing","x":257,"width":128,"y":82,"height":149},{"name":"bird/right upper wing","x":0,"width":148,"y":94,"height":122},{"name":"bird/necklace","x":399,"width":52,"y":376,"height":75},{"name":"bird/head","x":0,"width":123,"y":310,"height":78},{"name":"bird/neck","x":0,"width":131,"y":218,"height":90},{"name":"bird/middle feather","x":115,"width":138,"y":464,"height":31},{"name":"bird/right feather","x":374,"width":130,"y":453,"height":29},{"name":"bird/left feather","x":0,"width":114,"y":390,"height":39},{"name":"bird/body","x":0,"width":255,"y":0,"height":92},{"name":"bird/left upper wing","x":231,"width":111,"y":313,"height":88},{"name":"bird/left fore wing","x":150,"width":92,"y":94,"height":138},{"name":"bird/right feet","x":387,"width":70,"y":82,"height":102},{"name":"bird/left feet","x":374,"width":54,"y":275,"height":78},{"name":"bird/stone","x":133,"width":96,"y":234,"height":86},{"name":"centaur/man-right fore arm","x":229,"width":52,"y":403,"height":59},{"name":"centaur/man-weapon","x":257,"width":210,"y":0,"height":80},{"name":"centaur/man-head","x":125,"width":83,"y":322,"height":68},{"name":"centaur/man-shoulder","x":164,"width":63,"y":392,"height":48},{"name":"centaur/man-right upper arm","x":327,"width":45,"y":436,"height":57},{"name":"centaur/man-body","x":430,"width":79,"y":292,"height":82},{"name":"centaur/horse-front right feet","x":116,"width":46,"y":392,"height":68},{"name":"centaur/horse-front right leg","x":442,"width":54,"y":207,"height":83},{"name":"centaur/horse-back right feet","x":453,"width":53,"y":376,"height":66},{"name":"centaur/horse-back right leg","x":387,"width":53,"y":186,"height":87},{"name":"centaur/horse-body","x":244,"width":128,"y":233,"height":78},{"name":"centaur/horse-tail","x":469,"width":40,"y":0,"height":73},{"name":"centaur/horse-back left leg","x":459,"width":46,"y":123,"height":82},{"name":"centaur/horse-back left feet","x":0,"width":50,"y":431,"height":56},{"name":"centaur/horse-front left leg","x":344,"width":53,"y":355,"height":79},{"name":"centaur/horse-front left feet","x":283,"width":42,"y":403,"height":66},{"name":"centaur/man-left upper arm","x":469,"width":39,"y":75,"height":46},{"name":"centaur/man-left fore arm","x":52,"width":61,"y":431,"height":42}],"name":"charactor_all","imagePath":"texture.png"} -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Utils/FPS.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using UnityEngine; 11 | using System.Collections; 12 | 13 | public class FPS : MonoBehaviour 14 | { 15 | 16 | // Attach this to a GUIText to make a frames/second indicator. 17 | // 18 | // It calculates frames/second over each updateInterval, 19 | // so the display does not keep changing wildly. 20 | // 21 | // It is also fairly accurate at very low FPS counts (<10). 22 | // We do this not by simply counting frames per interval, but 23 | // by accumulating FPS for each frame. This way we end up with 24 | // correct overall FPS even if the interval renders something like 25 | // 5.5 frames. 26 | 27 | public float updateInterval = 0.5F; 28 | 29 | private float accum = 0; // FPS accumulated over the interval 30 | private int frames = 0; // Frames drawn over the interval 31 | private float timeleft; // Left time for current interval 32 | 33 | void Start() 34 | { 35 | if( !guiText ) 36 | { 37 | Debug.Log("UtilityFramesPerSecond needs a GUIText component!"); 38 | enabled = false; 39 | return; 40 | } 41 | timeleft = updateInterval; 42 | } 43 | 44 | void Update() 45 | { 46 | timeleft -= Time.deltaTime; 47 | accum += Time.timeScale/Time.deltaTime; 48 | ++frames; 49 | 50 | // Interval ended - update GUI text and start new interval 51 | if( timeleft <= 0.0 ) 52 | { 53 | // display two fractional digits (f2 format) 54 | float fps = accum/frames; 55 | string format = System.String.Format("{0:F2} FPS",fps); 56 | guiText.text = format; 57 | 58 | if(fps < 30) 59 | guiText.material.color = Color.yellow; 60 | else 61 | if(fps < 10) 62 | guiText.material.color = Color.red; 63 | else 64 | guiText.material.color = Color.green; 65 | // DebugConsole.Log(format,level); 66 | timeleft = updateInterval; 67 | accum = 0.0F; 68 | frames = 0; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /DragonBones/Factorys/UnityFactory.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using Com.Viperstudio.Utils; 13 | using DragonBones.Textures; 14 | using DragonBones.Objects; 15 | using DragonBones.Display; 16 | 17 | namespace DragonBones.Factorys 18 | { 19 | public class UnityFactory :BaseFactory 20 | { 21 | 22 | public UnityFactory() 23 | { 24 | 25 | //_names = new string[_textures.Length]; 26 | 27 | //for(int ii=0; ii< _names.Length; ii++) { 28 | // _names[ii] = _textures[ii].name; 29 | //} 30 | 31 | } 32 | 33 | /** @private */ 34 | override protected Armature generateArmature() 35 | { 36 | UnityArmatureDisplay unityArmatureDisplay = new UnityArmatureDisplay (_textureAtlasDic[_currentTextureAtlasName]); 37 | Armature armature = new Armature(unityArmatureDisplay); 38 | return armature; 39 | } 40 | 41 | /** @private */ 42 | override protected Slot generateSlot() 43 | { 44 | Slot slot = new Slot(new UnityDisplayBridge()); 45 | return slot; 46 | } 47 | 48 | /** @private */ 49 | override protected System.Object generateDisplay(TextureAtlas textureAtlas, string fullName, float pivotX, float pivotY) 50 | { 51 | UnityBoneDisplay display = new UnityBoneDisplay (textureAtlas, fullName, pivotX, pivotY); 52 | 53 | /* 54 | Sprite subTexture = _textures[Array.IndexOf(_names, fullName)]; 55 | 56 | if (subTexture!=null) 57 | { 58 | //Logger.Log("generate display " + fullName); 59 | GameObject imageContainer = new GameObject(); 60 | 61 | //GameObject image = new GameObject(); 62 | SpriteRenderer spriteRenderer = imageContainer.AddComponent(typeof(SpriteRenderer)) as SpriteRenderer; 63 | spriteRenderer.sprite = subTexture; 64 | 65 | //image.transform.parent = imageContainer.transform; 66 | 67 | //image.transform.localPosition = new Vector3( -pivotX/100 , -pivotY/100, 1); 68 | 69 | 70 | return imageContainer; 71 | } 72 | return null; 73 | */ 74 | return display; 75 | } 76 | 77 | 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Factorys/UnityFactory.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using Com.Viperstudio.Utils; 13 | using DragonBones.Textures; 14 | using DragonBones.Objects; 15 | using DragonBones.Display; 16 | 17 | namespace DragonBones.Factorys 18 | { 19 | public class UnityFactory :BaseFactory 20 | { 21 | 22 | public UnityFactory() 23 | { 24 | 25 | //_names = new string[_textures.Length]; 26 | 27 | //for(int ii=0; ii< _names.Length; ii++) { 28 | // _names[ii] = _textures[ii].name; 29 | //} 30 | 31 | } 32 | 33 | /** @private */ 34 | override protected Armature generateArmature() 35 | { 36 | UnityArmatureDisplay unityArmatureDisplay = new UnityArmatureDisplay (_textureAtlasDic[_currentTextureAtlasName]); 37 | Armature armature = new Armature(unityArmatureDisplay); 38 | return armature; 39 | } 40 | 41 | /** @private */ 42 | override protected Slot generateSlot() 43 | { 44 | Slot slot = new Slot(new UnityDisplayBridge()); 45 | return slot; 46 | } 47 | 48 | /** @private */ 49 | override protected System.Object generateDisplay(TextureAtlas textureAtlas, string fullName, float pivotX, float pivotY) 50 | { 51 | UnityBoneDisplay display = new UnityBoneDisplay (textureAtlas, fullName, pivotX, pivotY); 52 | 53 | /* 54 | Sprite subTexture = _textures[Array.IndexOf(_names, fullName)]; 55 | 56 | if (subTexture!=null) 57 | { 58 | //Logger.Log("generate display " + fullName); 59 | GameObject imageContainer = new GameObject(); 60 | 61 | //GameObject image = new GameObject(); 62 | SpriteRenderer spriteRenderer = imageContainer.AddComponent(typeof(SpriteRenderer)) as SpriteRenderer; 63 | spriteRenderer.sprite = subTexture; 64 | 65 | //image.transform.parent = imageContainer.transform; 66 | 67 | //image.transform.localPosition = new Vector3( -pivotX/100 , -pivotY/100, 1); 68 | 69 | 70 | return imageContainer; 71 | } 72 | return null; 73 | */ 74 | return display; 75 | } 76 | 77 | 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /DragonBones/Events/AnimationEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using DragonBones.Animation; 12 | using Com.Viperstudio.Events; 13 | namespace DragonBones.Events 14 | { 15 | public class AnimationEvent :Event 16 | { 17 | /** 18 | * Dispatched when the playback of an animation fade in. 19 | */ 20 | public static string MOVEMENT_CHANGE 21 | { 22 | 23 | get { return FADE_IN; } 24 | 25 | } 26 | 27 | /** 28 | * Dispatched when the playback of an animation fade in. 29 | */ 30 | public const string FADE_IN = "fadeIn"; 31 | 32 | /** 33 | * Dispatched when the playback of an animation fade out. 34 | */ 35 | public const string FADE_OUT = "fadeOut"; 36 | 37 | /** 38 | * Dispatched when the playback of an animation starts. 39 | */ 40 | public const string START = "start"; 41 | 42 | /** 43 | * Dispatched when the playback of a animation stops. 44 | */ 45 | public const string COMPLETE = "complete"; 46 | 47 | /** 48 | * Dispatched when the playback of a animation completes a loop. 49 | */ 50 | public const string LOOP_COMPLETE = "loopComplete"; 51 | 52 | /** 53 | * Dispatched when the playback of an animation fade in complete. 54 | */ 55 | 56 | public const string FADE_IN_COMPLETE = "fadeInComplete"; 57 | 58 | /** 59 | * Dispatched when the playback of an animation fade out complete. 60 | */ 61 | public const string FADE_OUT_COMPLETE = "fadeOutComplete"; 62 | 63 | /** 64 | * The animationState instance. 65 | */ 66 | public AnimationState AnimationState; 67 | 68 | /** 69 | * The armature that is the taget of this event. 70 | */ 71 | public Armature Armature 72 | { 73 | get { return Target as Armature; } 74 | } 75 | 76 | public string MovementID 77 | { 78 | get { return AnimationState.Name; } 79 | } 80 | 81 | /** 82 | * Creates a new AnimationEvent instance. 83 | * @param type 84 | * @param cancelable 85 | */ 86 | public AnimationEvent(string type) :base(type) 87 | { 88 | 89 | } 90 | 91 | /** 92 | * @private 93 | * @return 94 | */ 95 | override public Event clone() 96 | { 97 | AnimationEvent evt = new AnimationEvent(this.EventType); 98 | evt.AnimationState = AnimationState; 99 | return evt; 100 | } 101 | } 102 | } 103 | 104 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Events/AnimationEvent.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using DragonBones.Animation; 12 | using Com.Viperstudio.Events; 13 | namespace DragonBones.Events 14 | { 15 | public class AnimationEvent :Event 16 | { 17 | /** 18 | * Dispatched when the playback of an animation fade in. 19 | */ 20 | public static string MOVEMENT_CHANGE 21 | { 22 | 23 | get { return FADE_IN; } 24 | 25 | } 26 | 27 | /** 28 | * Dispatched when the playback of an animation fade in. 29 | */ 30 | public const string FADE_IN = "fadeIn"; 31 | 32 | /** 33 | * Dispatched when the playback of an animation fade out. 34 | */ 35 | public const string FADE_OUT = "fadeOut"; 36 | 37 | /** 38 | * Dispatched when the playback of an animation starts. 39 | */ 40 | public const string START = "start"; 41 | 42 | /** 43 | * Dispatched when the playback of a animation stops. 44 | */ 45 | public const string COMPLETE = "complete"; 46 | 47 | /** 48 | * Dispatched when the playback of a animation completes a loop. 49 | */ 50 | public const string LOOP_COMPLETE = "loopComplete"; 51 | 52 | /** 53 | * Dispatched when the playback of an animation fade in complete. 54 | */ 55 | 56 | public const string FADE_IN_COMPLETE = "fadeInComplete"; 57 | 58 | /** 59 | * Dispatched when the playback of an animation fade out complete. 60 | */ 61 | public const string FADE_OUT_COMPLETE = "fadeOutComplete"; 62 | 63 | /** 64 | * The animationState instance. 65 | */ 66 | public AnimationState AnimationState; 67 | 68 | /** 69 | * The armature that is the taget of this event. 70 | */ 71 | public Armature Armature 72 | { 73 | get { return Target as Armature; } 74 | } 75 | 76 | public string MovementID 77 | { 78 | get { return AnimationState.Name; } 79 | } 80 | 81 | /** 82 | * Creates a new AnimationEvent instance. 83 | * @param type 84 | * @param cancelable 85 | */ 86 | public AnimationEvent(string type) :base(type) 87 | { 88 | 89 | } 90 | 91 | /** 92 | * @private 93 | * @return 94 | */ 95 | override public Event clone() 96 | { 97 | AnimationEvent evt = new AnimationEvent(this.EventType); 98 | evt.AnimationState = AnimationState; 99 | return evt; 100 | } 101 | } 102 | } 103 | 104 | -------------------------------------------------------------------------------- /Com/Viperstudio/Events/EventDispatcher.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | using UnityEngine; 12 | using System.Collections; 13 | using System; 14 | using System.Collections.Generic; 15 | 16 | namespace Com.Viperstudio.Events 17 | { 18 | 19 | public class EventDispatcher 20 | 21 | { 22 | 23 | public delegate void EventHandler (Com.Viperstudio.Events.Event e); 24 | 25 | private Dictionary events; 26 | 27 | public string Name; 28 | 29 | public void AddEventListener(string eventType, EventHandler function) 30 | { 31 | 32 | if (events == null) 33 | { 34 | 35 | events = new Dictionary(); 36 | 37 | } 38 | 39 | if(!events.ContainsKey(eventType)) 40 | { 41 | events.Add(eventType, function); 42 | } 43 | else 44 | { 45 | Delegate[] delegates = events[eventType].GetInvocationList(); 46 | for (int i = 0; i < delegates.Length; i++) 47 | { 48 | if(delegates[i] == function) 49 | { 50 | Debug.Log ("EventDispatcher: Same function added to one event."); 51 | return; 52 | } 53 | } 54 | events[eventType] += function; 55 | } 56 | 57 | } 58 | 59 | public void RemoveEventListener(string eventType, EventHandler function) 60 | { 61 | if (events == null) { 62 | return; 63 | } 64 | else 65 | { 66 | if (!events.ContainsKey (eventType)) 67 | { 68 | return; 69 | } 70 | else 71 | { 72 | Delegate[] delegates = events[eventType].GetInvocationList(); 73 | for (int i = 0; i < delegates.Length; i++) 74 | { 75 | if(delegates[i] == function) 76 | { 77 | events[eventType] -= function; 78 | break; 79 | } 80 | } 81 | if(events [eventType] == null) 82 | { 83 | events.Remove(eventType); 84 | } 85 | } 86 | } 87 | } 88 | 89 | public void DispatchEvent(Com.Viperstudio.Events.Event e) 90 | { 91 | 92 | e.Target = this; 93 | 94 | if (events == null) 95 | { 96 | return; 97 | } 98 | else 99 | { 100 | if (!events.ContainsKey (e.EventType)) 101 | { 102 | return; 103 | } 104 | else 105 | { 106 | events[e.EventType](e); 107 | } 108 | } 109 | } 110 | //TODO:add logic 111 | public bool HasEventListener(string eventType) 112 | { 113 | if (this.events == null) { 114 | return false; 115 | } 116 | else if (this.events.ContainsKey (eventType)) 117 | return true; 118 | else 119 | return false; 120 | } 121 | } 122 | } -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/Com/Viperstudio/Events/EventDispatcher.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | using UnityEngine; 12 | using System.Collections; 13 | using System; 14 | using System.Collections.Generic; 15 | 16 | namespace Com.Viperstudio.Events 17 | { 18 | 19 | public class EventDispatcher 20 | 21 | { 22 | 23 | public delegate void EventHandler (Com.Viperstudio.Events.Event e); 24 | 25 | private Dictionary events; 26 | 27 | public string Name; 28 | 29 | public void AddEventListener(string eventType, EventHandler function) 30 | { 31 | 32 | if (events == null) 33 | { 34 | 35 | events = new Dictionary(); 36 | 37 | } 38 | 39 | if(!events.ContainsKey(eventType)) 40 | { 41 | events.Add(eventType, function); 42 | } 43 | else 44 | { 45 | Delegate[] delegates = events[eventType].GetInvocationList(); 46 | for (int i = 0; i < delegates.Length; i++) 47 | { 48 | if(delegates[i] == function) 49 | { 50 | Debug.Log ("EventDispatcher: Same function added to one event."); 51 | return; 52 | } 53 | } 54 | events[eventType] += function; 55 | } 56 | 57 | } 58 | 59 | public void RemoveEventListener(string eventType, EventHandler function) 60 | { 61 | if (events == null) { 62 | return; 63 | } 64 | else 65 | { 66 | if (!events.ContainsKey (eventType)) 67 | { 68 | return; 69 | } 70 | else 71 | { 72 | Delegate[] delegates = events[eventType].GetInvocationList(); 73 | for (int i = 0; i < delegates.Length; i++) 74 | { 75 | if(delegates[i] == function) 76 | { 77 | events[eventType] -= function; 78 | break; 79 | } 80 | } 81 | if(events [eventType] == null) 82 | { 83 | events.Remove(eventType); 84 | } 85 | } 86 | } 87 | } 88 | 89 | public void DispatchEvent(Com.Viperstudio.Events.Event e) 90 | { 91 | 92 | e.Target = this; 93 | 94 | if (events == null) 95 | { 96 | return; 97 | } 98 | else 99 | { 100 | if (!events.ContainsKey (e.EventType)) 101 | { 102 | return; 103 | } 104 | else 105 | { 106 | events[e.EventType](e); 107 | } 108 | } 109 | } 110 | //TODO:add logic 111 | public bool HasEventListener(string eventType) 112 | { 113 | if (this.events == null) { 114 | return false; 115 | } 116 | else if (this.events.ContainsKey (eventType)) 117 | return true; 118 | else 119 | return false; 120 | } 121 | } 122 | } -------------------------------------------------------------------------------- /DragonBones/Display/UnityDisplayBridge.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using DragonBones.Objects; 13 | using UnityEngine; 14 | using Com.Viperstudio.Utils; 15 | 16 | namespace DragonBones.Display 17 | { 18 | public class UnityDisplayBridge :IDisplayBridge 19 | { 20 | 21 | 22 | 23 | private UnityBoneDisplay _display; 24 | /** 25 | * @inheritDoc 26 | */ 27 | public System.Object Display 28 | { 29 | get { return _display; } 30 | 31 | set { 32 | _display = value as UnityBoneDisplay; 33 | } 34 | } 35 | 36 | public bool Visible 37 | { 38 | get { return _display!=null?(_display as UnityBoneDisplay).Visible:false; } 39 | set { 40 | if(_display!=null) 41 | { 42 | (_display as UnityBoneDisplay).Visible = value; 43 | } 44 | 45 | } 46 | } 47 | 48 | /** 49 | * @inheritDoc 50 | */ 51 | public void Dispose() 52 | { 53 | if(_display!=null) 54 | { 55 | (_display as UnityBoneDisplay).Dispose(); 56 | _display = null; 57 | } 58 | 59 | } 60 | 61 | /** 62 | * @inheritDoc 63 | */ 64 | 65 | //private Vector3 vector = new Vector3 (); 66 | //private float angle; 67 | public void UpdateTransform(Com.Viperstudio.Geom.Matrix matrix, DBTransform transform) 68 | { 69 | if(_display!=null) 70 | { 71 | (_display as UnityBoneDisplay).Update(matrix); 72 | } 73 | 74 | 75 | } 76 | 77 | /** 78 | * @inheritDoc 79 | */ 80 | public void UpdateColor( 81 | float aOffset, 82 | float rOffset, 83 | float gOffset, 84 | float bOffset, 85 | float aMultiplier, 86 | float rMultiplier, 87 | float gMultiplier, 88 | float bMultiplier 89 | ) 90 | { 91 | /* 92 | _display.alpha = aMultiplier; 93 | if (_display is Quad) 94 | { 95 | (_display as Quad).color = (uint(rMultiplier * 0xff) << 16) + (uint(gMultiplier * 0xff) << 8) + uint(bMultiplier * 0xff); 96 | } 97 | */ 98 | return; 99 | } 100 | 101 | /** 102 | * @inheritDoc 103 | */ 104 | public void UpdateBlendMode(string blendMode) 105 | { 106 | if (_display is GameObject) 107 | { 108 | //_display.blendMode = blendMode; 109 | } 110 | return; 111 | } 112 | 113 | /** 114 | * @inheritDoc 115 | */ 116 | public void AddDisplay(System.Object container, float index = -1f) 117 | { 118 | 119 | 120 | } 121 | 122 | /** 123 | * @inheritDoc 124 | */ 125 | public void RemoveDisplay() 126 | { 127 | 128 | //GameObject.Destroy (_display as GameObject); 129 | 130 | } 131 | } 132 | } 133 | 134 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/UnityDisplayBridge.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using Com.Viperstudio.Geom; 12 | using DragonBones.Objects; 13 | using UnityEngine; 14 | using Com.Viperstudio.Utils; 15 | 16 | namespace DragonBones.Display 17 | { 18 | public class UnityDisplayBridge :IDisplayBridge 19 | { 20 | 21 | 22 | 23 | private UnityBoneDisplay _display; 24 | /** 25 | * @inheritDoc 26 | */ 27 | public System.Object Display 28 | { 29 | get { return _display; } 30 | 31 | set { 32 | _display = value as UnityBoneDisplay; 33 | } 34 | } 35 | 36 | public bool Visible 37 | { 38 | get { return _display!=null?(_display as UnityBoneDisplay).Visible:false; } 39 | set { 40 | if(_display!=null) 41 | { 42 | (_display as UnityBoneDisplay).Visible = value; 43 | } 44 | 45 | } 46 | } 47 | 48 | /** 49 | * @inheritDoc 50 | */ 51 | public void Dispose() 52 | { 53 | if(_display!=null) 54 | { 55 | (_display as UnityBoneDisplay).Dispose(); 56 | _display = null; 57 | } 58 | 59 | } 60 | 61 | /** 62 | * @inheritDoc 63 | */ 64 | 65 | //private Vector3 vector = new Vector3 (); 66 | //private float angle; 67 | public void UpdateTransform(Com.Viperstudio.Geom.Matrix matrix, DBTransform transform) 68 | { 69 | if(_display!=null) 70 | { 71 | (_display as UnityBoneDisplay).Update(matrix); 72 | } 73 | 74 | 75 | } 76 | 77 | /** 78 | * @inheritDoc 79 | */ 80 | public void UpdateColor( 81 | float aOffset, 82 | float rOffset, 83 | float gOffset, 84 | float bOffset, 85 | float aMultiplier, 86 | float rMultiplier, 87 | float gMultiplier, 88 | float bMultiplier 89 | ) 90 | { 91 | /* 92 | _display.alpha = aMultiplier; 93 | if (_display is Quad) 94 | { 95 | (_display as Quad).color = (uint(rMultiplier * 0xff) << 16) + (uint(gMultiplier * 0xff) << 8) + uint(bMultiplier * 0xff); 96 | } 97 | */ 98 | return; 99 | } 100 | 101 | /** 102 | * @inheritDoc 103 | */ 104 | public void UpdateBlendMode(string blendMode) 105 | { 106 | if (_display is GameObject) 107 | { 108 | //_display.blendMode = blendMode; 109 | } 110 | return; 111 | } 112 | 113 | /** 114 | * @inheritDoc 115 | */ 116 | public void AddDisplay(System.Object container, float index = -1f) 117 | { 118 | 119 | 120 | } 121 | 122 | /** 123 | * @inheritDoc 124 | */ 125 | public void RemoveDisplay() 126 | { 127 | 128 | //GameObject.Destroy (_display as GameObject); 129 | 130 | } 131 | } 132 | } 133 | 134 | -------------------------------------------------------------------------------- /DragonBones/Display/UnityBoneDisplay.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using DragonBones.Textures; 13 | using DragonBones.Objects; 14 | 15 | namespace DragonBones.Display 16 | { 17 | public class UnityBoneDisplay 18 | { 19 | public String Name; 20 | public float PivotX, PivotY; 21 | 22 | private bool _visible; 23 | 24 | private float[] _vertices; 25 | private float[] _verticesOrigin; 26 | private float[] _uvs; 27 | 28 | public float[] Vetices{ 29 | get { return _vertices; } 30 | set { _vertices = value;} 31 | 32 | } 33 | 34 | public float[] UVs{ 35 | get { return _uvs; } 36 | set { _uvs = value;} 37 | 38 | } 39 | 40 | public bool Visible{ 41 | get{return _visible;} 42 | set{_visible = value;} 43 | } 44 | 45 | public void Update(Com.Viperstudio.Geom.Matrix matrix) 46 | { 47 | //TODO: vetex updating 48 | 49 | for(int i=0;i<8;i+=2) 50 | { 51 | _vertices[i] = _verticesOrigin[i] * matrix.A + _verticesOrigin[i+1] * matrix.C + matrix.Tx ; 52 | _vertices[i + 1] = -(_verticesOrigin[i] * matrix.B + _verticesOrigin[i+1] * matrix.D + matrix.Ty) ; 53 | 54 | } 55 | 56 | 57 | } 58 | 59 | public void Dispose() 60 | { 61 | } 62 | 63 | public UnityBoneDisplay (TextureAtlas textureAtlas, string fullName, float pivotX, float pivotY) 64 | { 65 | //TODO: build vetex and mesh 66 | PivotX = pivotX; 67 | PivotY = pivotY; 68 | _uvs = new float[8]; 69 | _verticesOrigin = new float[8]; 70 | _vertices = new float[8]; 71 | TextureData textureData = textureAtlas.AtlasData.GetTextureData (fullName); 72 | 73 | _uvs [0] = textureData.X / (float)textureAtlas.Texture.width; 74 | _uvs [1] = 1-textureData.Y / (float)textureAtlas.Texture.height; 75 | _uvs [2] = (textureData.X +textureData.Width) / (float)textureAtlas.Texture.width; 76 | _uvs [3] = 1-textureData.Y / (float)textureAtlas.Texture.height; 77 | _uvs [4] = (textureData.X +textureData.Width) / (float)textureAtlas.Texture.width; 78 | _uvs [5] = 1-(textureData.Y + textureData.Height) / (float)textureAtlas.Texture.height; 79 | _uvs [6] = textureData.X / (float)textureAtlas.Texture.width; 80 | _uvs [7] = 1-(textureData.Y + textureData.Height) / (float)textureAtlas.Texture.height; 81 | 82 | 83 | _vertices[0] = _verticesOrigin [0] = -pivotX; 84 | _vertices[1] = _verticesOrigin [1] = -pivotY; 85 | _vertices[2] = _verticesOrigin [2] = textureData.Width-pivotX; 86 | _vertices[3] = _verticesOrigin [3] = -pivotY; 87 | _vertices[4] = _verticesOrigin [4] = textureData.Width-pivotX ; 88 | _vertices[5] = _verticesOrigin [5] = textureData.Height-pivotY; 89 | _vertices[6] = _verticesOrigin [6] = -pivotX; 90 | _vertices[7] = _verticesOrigin [7] = textureData.Height-pivotY; 91 | 92 | //Debug.Log("added"); 93 | 94 | } 95 | } 96 | } 97 | 98 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Display/UnityBoneDisplay.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using UnityEngine; 12 | using DragonBones.Textures; 13 | using DragonBones.Objects; 14 | 15 | namespace DragonBones.Display 16 | { 17 | public class UnityBoneDisplay 18 | { 19 | public String Name; 20 | public float PivotX, PivotY; 21 | 22 | private bool _visible; 23 | 24 | private float[] _vertices; 25 | private float[] _verticesOrigin; 26 | private float[] _uvs; 27 | 28 | public float[] Vetices{ 29 | get { return _vertices; } 30 | set { _vertices = value;} 31 | 32 | } 33 | 34 | public float[] UVs{ 35 | get { return _uvs; } 36 | set { _uvs = value;} 37 | 38 | } 39 | 40 | public bool Visible{ 41 | get{return _visible;} 42 | set{_visible = value;} 43 | } 44 | 45 | public void Update(Com.Viperstudio.Geom.Matrix matrix) 46 | { 47 | //TODO: vetex updating 48 | 49 | for(int i=0;i<8;i+=2) 50 | { 51 | _vertices[i] = _verticesOrigin[i] * matrix.A + _verticesOrigin[i+1] * matrix.C + matrix.Tx ; 52 | _vertices[i + 1] = -(_verticesOrigin[i] * matrix.B + _verticesOrigin[i+1] * matrix.D + matrix.Ty) ; 53 | 54 | } 55 | 56 | 57 | } 58 | 59 | public void Dispose() 60 | { 61 | } 62 | 63 | public UnityBoneDisplay (TextureAtlas textureAtlas, string fullName, float pivotX, float pivotY) 64 | { 65 | //TODO: build vetex and mesh 66 | PivotX = pivotX; 67 | PivotY = pivotY; 68 | _uvs = new float[8]; 69 | _verticesOrigin = new float[8]; 70 | _vertices = new float[8]; 71 | TextureData textureData = textureAtlas.AtlasData.GetTextureData (fullName); 72 | 73 | _uvs [0] = textureData.X / (float)textureAtlas.Texture.width; 74 | _uvs [1] = 1-textureData.Y / (float)textureAtlas.Texture.height; 75 | _uvs [2] = (textureData.X +textureData.Width) / (float)textureAtlas.Texture.width; 76 | _uvs [3] = 1-textureData.Y / (float)textureAtlas.Texture.height; 77 | _uvs [4] = (textureData.X +textureData.Width) / (float)textureAtlas.Texture.width; 78 | _uvs [5] = 1-(textureData.Y + textureData.Height) / (float)textureAtlas.Texture.height; 79 | _uvs [6] = textureData.X / (float)textureAtlas.Texture.width; 80 | _uvs [7] = 1-(textureData.Y + textureData.Height) / (float)textureAtlas.Texture.height; 81 | 82 | 83 | _vertices[0] = _verticesOrigin [0] = -pivotX; 84 | _vertices[1] = _verticesOrigin [1] = -pivotY; 85 | _vertices[2] = _verticesOrigin [2] = textureData.Width-pivotX; 86 | _vertices[3] = _verticesOrigin [3] = -pivotY; 87 | _vertices[4] = _verticesOrigin [4] = textureData.Width-pivotX ; 88 | _vertices[5] = _verticesOrigin [5] = textureData.Height-pivotY; 89 | _vertices[6] = _verticesOrigin [6] = -pivotX; 90 | _vertices[7] = _verticesOrigin [7] = textureData.Height-pivotY; 91 | 92 | //Debug.Log("added"); 93 | 94 | } 95 | } 96 | } 97 | 98 | -------------------------------------------------------------------------------- /DragonBones/Utils/ConstValues.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class ConstValues 14 | { 15 | public const float ANGLE_TO_RADIAN = (float)Math.PI / 180f; 16 | 17 | public const string DRAGON_BONES = "dragonBones"; 18 | public const string ARMATURE = "armature"; 19 | public const string SKIN = "skin"; 20 | public const string BONE = "bone"; 21 | public const string SLOT = "slot"; 22 | public const string DISPLAY = "display"; 23 | public const string ANIMATION = "animation"; 24 | public const string TIMELINE = "timeline"; 25 | public const string FRAME = "frame"; 26 | public const string TRANSFORM = "transform"; 27 | public const string COLOR_TRANSFORM = "colorTransform"; 28 | 29 | public const string TEXTURE_ATLAS = "TextureAtlas"; 30 | public const string SUB_TEXTURE = "SubTexture"; 31 | 32 | public const string A_VERSION = "version"; 33 | public const string A_IMAGE_PATH = "imagePath"; 34 | public const string A_FRAME_RATE = "frameRate"; 35 | public const string A_NAME = "name"; 36 | public const string A_PARENT = "parent"; 37 | public const string A_LENGTH = "length"; 38 | public const string A_TYPE = "type"; 39 | public const string A_FADE_IN_TIME = "fadeInTime"; 40 | public const string A_DURATION = "duration"; 41 | public const string A_SCALE = "scale"; 42 | public const string A_OFFSET = "offset"; 43 | public const string A_LOOP = "loop"; 44 | public const string A_EVENT = "event"; 45 | public const string A_SOUND = "sound"; 46 | public const string A_ACTION = "action"; 47 | public const string A_HIDE = "hide"; 48 | public const string A_TWEEN_EASING = "tweenEasing"; 49 | public const string A_TWEEN_ROTATE = "tweenRotate"; 50 | public const string A_DISPLAY_INDEX = "displayIndex"; 51 | public const string A_Z_ORDER = "z"; 52 | public const string A_BLENDMODE = "blendMode"; 53 | public const string A_WIDTH = "width"; 54 | public const string A_HEIGHT = "height"; 55 | public const string A_SCALE_MODE = "scaleMode"; 56 | public const string A_FIXED_ROTATION = "fixedRotation"; 57 | public const string A_X = "x"; 58 | public const string A_Y = "y"; 59 | public const string A_SKEW_X = "skX"; 60 | public const string A_SKEW_Y = "skY"; 61 | public const string A_SCALE_X = "scX"; 62 | public const string A_SCALE_Y = "scY"; 63 | public const string A_PIVOT_X = "pX"; 64 | public const string A_PIVOT_Y = "pY"; 65 | public const string A_ALPHA_OFFSET = "aO"; 66 | public const string A_RED_OFFSET = "rO"; 67 | public const string A_GREEN_OFFSET = "gO"; 68 | public const string A_BLUE_OFFSET = "bO"; 69 | public const string A_ALPHA_MULTIPLIER = "aM"; 70 | public const string A_RED_MULTIPLIER = "rM"; 71 | public const string A_GREEN_MULTIPLIER = "gM"; 72 | public const string A_BLUE_MULTIPLIER = "bM"; 73 | 74 | public const string A_SUBTEXTURE = "SubTexture"; 75 | } 76 | } 77 | 78 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Utils/ConstValues.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | namespace DragonBones.Utils 12 | { 13 | public class ConstValues 14 | { 15 | public const float ANGLE_TO_RADIAN = (float)Math.PI / 180f; 16 | 17 | public const string DRAGON_BONES = "dragonBones"; 18 | public const string ARMATURE = "armature"; 19 | public const string SKIN = "skin"; 20 | public const string BONE = "bone"; 21 | public const string SLOT = "slot"; 22 | public const string DISPLAY = "display"; 23 | public const string ANIMATION = "animation"; 24 | public const string TIMELINE = "timeline"; 25 | public const string FRAME = "frame"; 26 | public const string TRANSFORM = "transform"; 27 | public const string COLOR_TRANSFORM = "colorTransform"; 28 | 29 | public const string TEXTURE_ATLAS = "TextureAtlas"; 30 | public const string SUB_TEXTURE = "SubTexture"; 31 | 32 | public const string A_VERSION = "version"; 33 | public const string A_IMAGE_PATH = "imagePath"; 34 | public const string A_FRAME_RATE = "frameRate"; 35 | public const string A_NAME = "name"; 36 | public const string A_PARENT = "parent"; 37 | public const string A_LENGTH = "length"; 38 | public const string A_TYPE = "type"; 39 | public const string A_FADE_IN_TIME = "fadeInTime"; 40 | public const string A_DURATION = "duration"; 41 | public const string A_SCALE = "scale"; 42 | public const string A_OFFSET = "offset"; 43 | public const string A_LOOP = "loop"; 44 | public const string A_EVENT = "event"; 45 | public const string A_SOUND = "sound"; 46 | public const string A_ACTION = "action"; 47 | public const string A_HIDE = "hide"; 48 | public const string A_TWEEN_EASING = "tweenEasing"; 49 | public const string A_TWEEN_ROTATE = "tweenRotate"; 50 | public const string A_DISPLAY_INDEX = "displayIndex"; 51 | public const string A_Z_ORDER = "z"; 52 | public const string A_BLENDMODE = "blendMode"; 53 | public const string A_WIDTH = "width"; 54 | public const string A_HEIGHT = "height"; 55 | public const string A_SCALE_MODE = "scaleMode"; 56 | public const string A_FIXED_ROTATION = "fixedRotation"; 57 | public const string A_X = "x"; 58 | public const string A_Y = "y"; 59 | public const string A_SKEW_X = "skX"; 60 | public const string A_SKEW_Y = "skY"; 61 | public const string A_SCALE_X = "scX"; 62 | public const string A_SCALE_Y = "scY"; 63 | public const string A_PIVOT_X = "pX"; 64 | public const string A_PIVOT_Y = "pY"; 65 | public const string A_ALPHA_OFFSET = "aO"; 66 | public const string A_RED_OFFSET = "rO"; 67 | public const string A_GREEN_OFFSET = "gO"; 68 | public const string A_BLUE_OFFSET = "bO"; 69 | public const string A_ALPHA_MULTIPLIER = "aM"; 70 | public const string A_RED_MULTIPLIER = "rM"; 71 | public const string A_GREEN_MULTIPLIER = "gM"; 72 | public const string A_BLUE_MULTIPLIER = "bM"; 73 | 74 | public const string A_SUBTEXTURE = "SubTexture"; 75 | } 76 | } 77 | 78 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/CharactorManager.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.IO; 12 | using DragonBones; 13 | using DragonBones.Factorys; 14 | using DragonBones.Animation; 15 | using DragonBones.Objects; 16 | using DragonBones.Display; 17 | using DragonBones.Textures; 18 | using System.Collections.Generic; 19 | using Com.Viperstudio.Utils; 20 | using UnityEngine; 21 | 22 | namespace LastCastle 23 | { 24 | public class CharactorManager :MonoBehaviour 25 | { 26 | void Awake () 27 | { 28 | //Application.targetFrameRate = 30; 29 | 30 | } 31 | 32 | void Start () 33 | { 34 | //read and parse skeleton josn into SkeletonData 35 | TextAsset jsonReader = (TextAsset)Resources.Load("skeleton.json", typeof(TextAsset)); 36 | TextReader reader = new StringReader (jsonReader.text); 37 | Dictionary skeletonRawData = Json.Deserialize (reader) as Dictionary; 38 | SkeletonData skeletonData = ObjectDataParser.ParseSkeletonData (skeletonRawData); 39 | 40 | //read and parse texture atlas josn into TextureAtlas 41 | Texture _textures = Resources.Load("texture"); 42 | jsonReader = (TextAsset)Resources.Load("texture.json", typeof(TextAsset)); 43 | reader = new StringReader (jsonReader.text); 44 | Dictionary atlasRawData = Json.Deserialize (reader) as Dictionary; 45 | AtlasData atlasData = AtlasDataParser.ParseAtlasData (atlasRawData); 46 | TextureAtlas textureAtlas = new TextureAtlas (_textures, atlasData); 47 | 48 | //use the above data to make factory 49 | UnityFactory factory = new UnityFactory (); 50 | factory.AddSkeletonData (skeletonData, skeletonData.Name); 51 | factory.AddTextureAtlas (textureAtlas); 52 | 53 | //add 20 centaur into scene at some random positions. 54 | System.Random random = new System.Random(); 55 | for (int i=0; i<2; i++) { 56 | for (int j=0; j<5; j++) { 57 | Armature armature = factory.BuildArmature ("centaur/charactor", null, "charactor_all"); 58 | armature.AdvanceTime (0f); 59 | float r0 = (float)random.NextDouble() + 0.5f; 60 | float r1 = 0;//(float)random.NextDouble(); 61 | float r2 = (float)random.NextDouble(); 62 | ((armature.Display as UnityArmatureDisplay).Display as GameObject).transform.position = new Vector3((float)j+r0*20f, 1, r2*15f); 63 | WorldClock.Clock.Add (armature); 64 | armature.Animation.GotoAndPlay ("run", -1, -1, 0); 65 | } 66 | } 67 | 68 | //add 20 bird into scene at some random positions. 69 | for (int i=0; i<2; i++) { 70 | for (int j=0; j<5; j++) { 71 | Armature armature = factory.BuildArmature ("bird/charactor", null, "charactor_all"); 72 | armature.AdvanceTime (0f); 73 | float r0 = (float)random.NextDouble() + 0.5f; 74 | float r1 = (float)random.NextDouble() + 1; 75 | float r2 = (float)random.NextDouble(); 76 | ((armature.Display as UnityArmatureDisplay).Display as GameObject).transform.position = new Vector3((float)j+r0*20f, (float)i*3f+r1*5f, r2*15f); 77 | WorldClock.Clock.Add (armature); 78 | armature.Animation.GotoAndPlay ("fly", -1, -1, 0); 79 | } 80 | } 81 | } 82 | 83 | // Update is called once per frame 84 | void Update () 85 | { 86 | WorldClock.Clock.AdvanceTime (Time.deltaTime); 87 | } 88 | 89 | } 90 | } 91 | 92 | -------------------------------------------------------------------------------- /DragonBones/Objects/SkeletonData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | using Com.Viperstudio.Geom; 14 | 15 | namespace DragonBones.Objects 16 | { 17 | public class SkeletonData 18 | { 19 | public string Name; 20 | 21 | private Dictionary _subTexturePivots; 22 | 23 | public List armatureNames 24 | { 25 | get { 26 | List nameList = new List(); 27 | foreach(ArmatureData armatureData in _armatureDataList) 28 | { 29 | nameList[nameList.Count] = armatureData.Name; 30 | } 31 | return nameList; 32 | } 33 | } 34 | 35 | private List _armatureDataList; 36 | public List armatureDataList 37 | { 38 | get { return _armatureDataList; } 39 | } 40 | 41 | public SkeletonData() 42 | { 43 | _armatureDataList = new List(); 44 | _subTexturePivots = new Dictionary(); 45 | } 46 | 47 | public void Dispose() 48 | { 49 | foreach(ArmatureData armatureData in _armatureDataList) 50 | { 51 | armatureData.Dispose(); 52 | } 53 | 54 | _armatureDataList.Clear (); 55 | 56 | _armatureDataList = null; 57 | _subTexturePivots = null; 58 | } 59 | 60 | public ArmatureData GetArmatureData(string armatureName) 61 | { 62 | int i = _armatureDataList.Count; 63 | while(i -- >0) 64 | { 65 | if(_armatureDataList[i].Name == armatureName) 66 | { 67 | return _armatureDataList[i]; 68 | } 69 | } 70 | 71 | return null; 72 | } 73 | 74 | public void AddArmatureData(ArmatureData armatureData) 75 | { 76 | if(armatureData == null) 77 | { 78 | throw new ArgumentException(); 79 | } 80 | 81 | if(_armatureDataList.IndexOf(armatureData) < 0) 82 | { 83 | _armatureDataList.Add(armatureData); 84 | } 85 | else 86 | { 87 | throw new ArgumentException(); 88 | } 89 | } 90 | 91 | public void RemoveArmatureData(ArmatureData armatureData) 92 | { 93 | int index = _armatureDataList.IndexOf(armatureData); 94 | if(index >= 0) 95 | { 96 | _armatureDataList.RemoveAt(index); 97 | } 98 | } 99 | 100 | public void RemoveArmatureDataByName(string armatureName) 101 | { 102 | int i = _armatureDataList.Count; 103 | while(i -- >0) 104 | { 105 | if(_armatureDataList[i].Name == armatureName) 106 | { 107 | _armatureDataList.RemoveAt(i); 108 | } 109 | } 110 | } 111 | 112 | public Point GetSubTexturePivot(string subTextureName) 113 | { 114 | return _subTexturePivots[subTextureName]; 115 | } 116 | 117 | public Point AddSubTexturePivot(float x, float y, string subTextureName) 118 | { 119 | Point point = new Point(x, y); 120 | if (_subTexturePivots.ContainsKey (subTextureName)) { 121 | if(_subTexturePivots [subTextureName] == null) 122 | { 123 | _subTexturePivots [subTextureName] = new Point(); 124 | } 125 | _subTexturePivots [subTextureName].X = x; 126 | _subTexturePivots [subTextureName].Y = y; 127 | } 128 | else 129 | { 130 | _subTexturePivots.Add(subTextureName, point); 131 | } 132 | 133 | return point; 134 | } 135 | 136 | public void RemoveSubTexturePivot(string subTextureName) 137 | { 138 | if(subTextureName!=null) 139 | { 140 | _subTexturePivots.Remove(subTextureName); 141 | } 142 | else 143 | { 144 | foreach(KeyValuePair subTexture in _subTexturePivots) 145 | { 146 | _subTexturePivots.Remove(subTexture.Key); 147 | } 148 | } 149 | } 150 | } 151 | } 152 | 153 | -------------------------------------------------------------------------------- /BirdAndCentaurDemo/Assets/script/DragonBones/Objects/SkeletonData.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using Com.Viperstudio.Utils; 13 | using Com.Viperstudio.Geom; 14 | 15 | namespace DragonBones.Objects 16 | { 17 | public class SkeletonData 18 | { 19 | public string Name; 20 | 21 | private Dictionary _subTexturePivots; 22 | 23 | public List armatureNames 24 | { 25 | get { 26 | List nameList = new List(); 27 | foreach(ArmatureData armatureData in _armatureDataList) 28 | { 29 | nameList[nameList.Count] = armatureData.Name; 30 | } 31 | return nameList; 32 | } 33 | } 34 | 35 | private List _armatureDataList; 36 | public List armatureDataList 37 | { 38 | get { return _armatureDataList; } 39 | } 40 | 41 | public SkeletonData() 42 | { 43 | _armatureDataList = new List(); 44 | _subTexturePivots = new Dictionary(); 45 | } 46 | 47 | public void Dispose() 48 | { 49 | foreach(ArmatureData armatureData in _armatureDataList) 50 | { 51 | armatureData.Dispose(); 52 | } 53 | 54 | _armatureDataList.Clear (); 55 | 56 | _armatureDataList = null; 57 | _subTexturePivots = null; 58 | } 59 | 60 | public ArmatureData GetArmatureData(string armatureName) 61 | { 62 | int i = _armatureDataList.Count; 63 | while(i -- >0) 64 | { 65 | if(_armatureDataList[i].Name == armatureName) 66 | { 67 | return _armatureDataList[i]; 68 | } 69 | } 70 | 71 | return null; 72 | } 73 | 74 | public void AddArmatureData(ArmatureData armatureData) 75 | { 76 | if(armatureData == null) 77 | { 78 | throw new ArgumentException(); 79 | } 80 | 81 | if(_armatureDataList.IndexOf(armatureData) < 0) 82 | { 83 | _armatureDataList.Add(armatureData); 84 | } 85 | else 86 | { 87 | throw new ArgumentException(); 88 | } 89 | } 90 | 91 | public void RemoveArmatureData(ArmatureData armatureData) 92 | { 93 | int index = _armatureDataList.IndexOf(armatureData); 94 | if(index >= 0) 95 | { 96 | _armatureDataList.RemoveAt(index); 97 | } 98 | } 99 | 100 | public void RemoveArmatureDataByName(string armatureName) 101 | { 102 | int i = _armatureDataList.Count; 103 | while(i -- >0) 104 | { 105 | if(_armatureDataList[i].Name == armatureName) 106 | { 107 | _armatureDataList.RemoveAt(i); 108 | } 109 | } 110 | } 111 | 112 | public Point GetSubTexturePivot(string subTextureName) 113 | { 114 | return _subTexturePivots[subTextureName]; 115 | } 116 | 117 | public Point AddSubTexturePivot(float x, float y, string subTextureName) 118 | { 119 | Point point = new Point(x, y); 120 | if (_subTexturePivots.ContainsKey (subTextureName)) { 121 | if(_subTexturePivots [subTextureName] == null) 122 | { 123 | _subTexturePivots [subTextureName] = new Point(); 124 | } 125 | _subTexturePivots [subTextureName].X = x; 126 | _subTexturePivots [subTextureName].Y = y; 127 | } 128 | else 129 | { 130 | _subTexturePivots.Add(subTextureName, point); 131 | } 132 | 133 | return point; 134 | } 135 | 136 | public void RemoveSubTexturePivot(string subTextureName) 137 | { 138 | if(subTextureName!=null) 139 | { 140 | _subTexturePivots.Remove(subTextureName); 141 | } 142 | else 143 | { 144 | foreach(KeyValuePair subTexture in _subTexturePivots) 145 | { 146 | _subTexturePivots.Remove(subTexture.Key); 147 | } 148 | } 149 | } 150 | } 151 | } 152 | 153 | -------------------------------------------------------------------------------- /DragonBones/Display/UnityArmatureDisplay.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | using System; 11 | using System.Collections.Generic; 12 | using DragonBones.Textures; 13 | using UnityEngine; 14 | 15 | namespace DragonBones.Display 16 | { 17 | public class UnityArmatureDisplay 18 | { 19 | private Mesh mesh; 20 | private MeshFilter filter; 21 | private Vector3[] vertices; 22 | private Vector2[] uvs; 23 | private int[] triangles; 24 | private GameObject _display; 25 | private Color32[] colors; 26 | 27 | public GameObject Display { 28 | 29 | get { return _display;} 30 | set { _display = value;} 31 | } 32 | 33 | public UnityArmatureDisplay (TextureAtlas atlas) 34 | { 35 | _display = new GameObject (); 36 | filter = _display.AddComponent("MeshFilter") as MeshFilter; 37 | _display.AddComponent("MeshRenderer"); 38 | mesh = new Mesh(); 39 | filter.sharedMesh = mesh; 40 | _display.renderer.sharedMaterial = atlas.Material; 41 | 42 | } 43 | 44 | 45 | public void UpdateDisplay(List slotList) 46 | { 47 | //TODO:submeshes clear then update 48 | mesh.Clear(); 49 | 50 | int vertexIndex = 0; 51 | int triangleIndex = 0; 52 | int triangleCount = slotList.Count*6; 53 | vertices = new Vector3[slotList.Count*4]; 54 | uvs = new Vector2[slotList.Count*4]; 55 | triangles = new int[triangleCount]; 56 | 57 | for (int i = 0; i < slotList.Count; i++) { 58 | 59 | Slot slot = slotList[i]; 60 | float[] slotVertices = (slot.Display as UnityBoneDisplay).Vetices; 61 | float[] slotUVs = (slot.Display as UnityBoneDisplay).UVs; 62 | 63 | vertexIndex = i * 4; 64 | triangleIndex = -(i +1) * 6; 65 | 66 | vertices[vertexIndex] = new Vector3(slotVertices[0]/100, slotVertices[1]/100, 0); 67 | vertices[vertexIndex + 1] = new Vector3(slotVertices[2]/100, slotVertices[3]/100, 0); 68 | vertices[vertexIndex + 2] = new Vector3(slotVertices[4]/100, slotVertices[5]/100, 0); 69 | vertices[vertexIndex + 3] = new Vector3(slotVertices[6]/100, slotVertices[7]/100, 0); 70 | 71 | uvs[vertexIndex] = new Vector2(slotUVs[0], slotUVs[1]); 72 | uvs[vertexIndex + 1] = new Vector2(slotUVs[2], slotUVs[3]); 73 | uvs[vertexIndex + 2] = new Vector2(slotUVs[4], slotUVs[5]); 74 | uvs[vertexIndex + 3] = new Vector2(slotUVs[6], slotUVs[7]); 75 | 76 | triangles[triangleCount + triangleIndex] = vertexIndex; 77 | triangles[triangleCount + triangleIndex + 1] = vertexIndex + 1; 78 | triangles[triangleCount + triangleIndex + 2] = vertexIndex + 2; 79 | triangles[triangleCount + triangleIndex + 3] = vertexIndex +2; 80 | triangles[triangleCount + triangleIndex + 4] = vertexIndex + 3; 81 | triangles[triangleCount + triangleIndex + 5] = vertexIndex + 0; 82 | 83 | } 84 | /* 85 | Vector3[] normals = new Vector3[slotList.Count*4]; 86 | Vector3 normal = new Vector3(0, 0, -1); 87 | for (int i = 0; i < slotList.Count*4; i++) 88 | normals[i] = normal; 89 | */ 90 | if(colors == null) 91 | { 92 | colors = new Color32[slotList.Count*4]; 93 | Color32 color = new Color32(); 94 | color.a = 255; 95 | color.r = 255; 96 | color.g = 255; 97 | color.b = 255; 98 | for (int i = 0; i < slotList.Count*4; i++) 99 | colors[i] = color; 100 | } 101 | /* 102 | Vector4[] tangents = new Vector4[slotList.Count*4]; 103 | Vector3 tangent = new Vector3(0, 0, 1); 104 | for (int i = 0; i < slotList.Count*4; i++) 105 | tangents[i] = tangent; 106 | */ 107 | 108 | mesh.vertices = vertices; 109 | mesh.uv = uvs; 110 | mesh.triangles = triangles; 111 | //mesh.normals = normals; 112 | //mesh.tangents = tangents; 113 | mesh.colors32 = colors; 114 | 115 | } 116 | } 117 | } 118 | 119 | --------------------------------------------------------------------------------