diff options
author | chai <chaifix@163.com> | 2021-07-23 18:42:13 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-07-23 18:42:13 +0800 |
commit | 4ceee84cd45e4e3ec40ebd888e41bd47a938c2d5 (patch) | |
tree | 7ab020f3c784a90eec9e8a100db68039b5306b45 /Assets/Scripts/Unit/Events/AnimationEventBase.cs | |
parent | cb893e1e5e4820cb800836cf6b8a79a1cd986cdc (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Events/AnimationEventBase.cs')
-rw-r--r-- | Assets/Scripts/Unit/Events/AnimationEventBase.cs | 24 |
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; }
}
|