summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Events/EventProjectile.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-07-23 18:42:13 +0800
committerchai <chaifix@163.com>2021-07-23 18:42:13 +0800
commit4ceee84cd45e4e3ec40ebd888e41bd47a938c2d5 (patch)
tree7ab020f3c784a90eec9e8a100db68039b5306b45 /Assets/Scripts/Unit/Events/EventProjectile.cs
parentcb893e1e5e4820cb800836cf6b8a79a1cd986cdc (diff)
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Events/EventProjectile.cs')
-rw-r--r--Assets/Scripts/Unit/Events/EventProjectile.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Events/EventProjectile.cs b/Assets/Scripts/Unit/Events/EventProjectile.cs
new file mode 100644
index 00000000..526628e8
--- /dev/null
+++ b/Assets/Scripts/Unit/Events/EventProjectile.cs
@@ -0,0 +1,32 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class EventProjectile : AnimationEventBase
+{
+ public override TimelineEvent.EEventType type { get { return TimelineEvent.EEventType.EventProjectile; } }
+
+ public override string shortName { get { return "P"; } }
+
+ [Tooltip("Projectile path")]
+ public string projectilePath;
+
+ [Tooltip("Is attached to a bone")]
+ public bool attached;
+
+ [Tooltip("Bone path attach to")]
+ public string bone;
+
+ [Tooltip("Position offset")]
+ public Vector3 position;
+
+ [Tooltip("Rotation in euler")]
+ public Vector3 rotation;
+
+ [Tooltip("Scale")]
+ public Vector3 scale;
+
+ [Tooltip("Initial velocity")]
+ public Vector3 velocity;
+
+}