summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Events/AnimationEventBase.cs
blob: 42fe6460d76f3847bbf608bb6cc28a1c48473803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

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; }
}