diff options
author | chai <chaifix@163.com> | 2021-09-01 20:48:18 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-01 20:48:18 +0800 |
commit | f7e60ab9a52e557aa2250477d018b2768bccc028 (patch) | |
tree | 73b3aa2d145e907281f04007a8a5e63f3ce85a05 /Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs | |
parent | 8c519185b0053daa23c5c5978d47baf77c1391b0 (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs')
-rw-r--r-- | Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs b/Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs new file mode 100644 index 00000000..ee792ddc --- /dev/null +++ b/Assets/Scripts/Unit/Events/EventMesh_AfterImage.cs @@ -0,0 +1,21 @@ +using UnityEngine;
+
+public class EventMesh_AfterImage : AnimationEventBase
+{
+ public enum ELife
+ {
+ FrameBased = 0,
+ FixedTime = 1,
+ }
+
+ public override TimelineEventProxy.EEventType type { get { return TimelineEventProxy.EEventType.EventMesh_AfterImage; } }
+ public override string shortName { get { return "A"; } }
+
+ public ELife lifeType;
+ [When("lifeType", (int)ELife.FixedTime), Tooltip("持续时间(按时间,scaledTime)")]
+ public float durationInFixedTime;
+ [When("lifeType", (int)ELife.FrameBased), Tooltip("持续时间(按帧, unscaledTime)")]
+ public float durationInFrame;
+
+}
+
\ No newline at end of file |