From 4ceee84cd45e4e3ec40ebd888e41bd47a938c2d5 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 23 Jul 2021 18:42:13 +0800 Subject: *misc --- Assets/Scripts/Unit/Events/AnimationEventBase.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Assets/Scripts/Unit/Events/AnimationEventBase.cs') 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; } } -- cgit v1.1-26-g67d0