summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/AnimationData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/AnimationData.cs')
-rw-r--r--Assets/Scripts/Unit/AnimationData.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/AnimationData.cs b/Assets/Scripts/Unit/AnimationData.cs
new file mode 100644
index 00000000..0091b798
--- /dev/null
+++ b/Assets/Scripts/Unit/AnimationData.cs
@@ -0,0 +1,14 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// 某个动画的数据,包括帧事件、碰撞盒
+[CreateAssetMenu(fileName = "Animation Data")]
+public class AnimationData : ScriptableObject
+{
+ public string animationFile;
+
+ public List<AnimationEventBase> animationEvents;
+
+ public List<ColliderData> colliders;
+}