summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Events/AnimationEventBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Events/AnimationEventBase.cs')
-rw-r--r--Assets/Scripts/Unit/Events/AnimationEventBase.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Events/AnimationEventBase.cs b/Assets/Scripts/Unit/Events/AnimationEventBase.cs
index 774f7b38..42fe6460 100644
--- a/Assets/Scripts/Unit/Events/AnimationEventBase.cs
+++ b/Assets/Scripts/Unit/Events/AnimationEventBase.cs
@@ -8,4 +8,28 @@ public abstract class AnimationEventBase : ScriptableObject
public int startFrame;
public abstract TimelineEvent.EEventType type { get; }
+
+ public string fullName
+ {
+ get
+ {
+ return this.type.ToString();
+ }
+ }
+
+ public string Name
+ {
+ get
+ {
+ string name = fullName.Replace("Event", "");
+ //int underscore = name.IndexOf('_');
+ //if (underscore != -1)
+ //{
+ // name = name.Substring(underscore + 1, name.Length - underscore - 1);
+ //}
+ return name;
+ }
+ }
+
+ public abstract string shortName { get; }
}