diff options
author | chai <chaifix@163.com> | 2021-09-03 19:54:38 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-03 19:54:38 +0800 |
commit | 2a061be5b19e7b85e58ae6405368e28bdc073048 (patch) | |
tree | eb447b84a2c016f6f9ea7d71cf3357a1cbfe1c2c /Assets/Scripts/Unit/Events/EventProjectile.cs | |
parent | 09fe2bbb41e25e176ac26da56360899870ad80ec (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Events/EventProjectile.cs')
-rw-r--r-- | Assets/Scripts/Unit/Events/EventProjectile.cs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Assets/Scripts/Unit/Events/EventProjectile.cs b/Assets/Scripts/Unit/Events/EventProjectile.cs index 0c1dc22b..5f9a22aa 100644 --- a/Assets/Scripts/Unit/Events/EventProjectile.cs +++ b/Assets/Scripts/Unit/Events/EventProjectile.cs @@ -4,6 +4,12 @@ using UnityEngine; public class EventProjectile : AnimationEventBase
{
+ public enum EMoveType
+ {
+ GoStraight,
+ Curve,
+ }
+
public override TimelineEventProxy.EEventType type { get { return TimelineEventProxy.EEventType.EventProjectile; } }
public override string shortName { get { return "P"; } }
@@ -23,18 +29,23 @@ public class EventProjectile : AnimationEventBase [Tooltip("Rotation in euler")]
public Vector3 rotation;
- [Tooltip("Scale")]
+ [When("moveType", EMoveType.GoStraight), Tooltip("Scale")]
public Vector3 scale = Vector3.one;
- [Tooltip("初始速度")]
+ [Comment("[ 运动方式 ]", TextAnchor.MiddleCenter)]
+
+ public EMoveType moveType;
+
+ [When("moveType", EMoveType.GoStraight), Tooltip("初始速度")]
public Vector3 velocity;
- [Tooltip("朝向运动方向")]
public bool towardDirection;
- [Tooltip("击中效果")]
- public ColliderBox.EHitResponse hitResponse;
+ [Comment("[ 击中反馈 ]", TextAnchor.MiddleCenter)]
public string sparkPath;
+ [Tooltip("击中效果")]
+ public ColliderBox.EHitResponse hitResponse;
+
}
|