summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Events
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Events')
-rw-r--r--Assets/Scripts/Unit/Events/EventEffect.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Assets/Scripts/Unit/Events/EventEffect.cs b/Assets/Scripts/Unit/Events/EventEffect.cs
index 9798ed6a..347b92f5 100644
--- a/Assets/Scripts/Unit/Events/EventEffect.cs
+++ b/Assets/Scripts/Unit/Events/EventEffect.cs
@@ -2,6 +2,12 @@
public class EventEffect : AnimationEventBase
{
+ public enum EAttachNode
+ {
+ Unit,
+ Bone,
+ }
+
public override TimelineEventProxy.EEventType type { get { return TimelineEventProxy.EEventType.EventEffect; } }
public override string shortName { get { return "E"; } }
@@ -9,9 +15,12 @@ public class EventEffect : AnimationEventBase
public string effectPath;
[Tooltip("Is attached to a bone")]
- public bool attached;
+ public bool attached = true;
+
+ [If("attached")]
+ public EAttachNode attachNode = EAttachNode.Unit;
- [If("attached"), Tooltip("Bone path attach to")]
+ [When("attachNode", EAttachNode.Bone), Tooltip("Bone path attach to")]
public string bone;
[Tooltip("Position offset")]