using UnityEngine; namespace CinemaDirector { /// /// A timeline action that has some paired object that has a fixed length. /// This is ideal for items like Audio clips and Animation clips. /// public abstract class TimelineActionFixed : TimelineAction { [SerializeField] private float inTime = 0f; [SerializeField] private float outTime = 1f; [SerializeField] private float itemLength = 0f; public float InTime { get { return inTime; } set { inTime = value; Duration = outTime - inTime; } } public float OutTime { get { return outTime; } set { outTime = value; Duration = outTime - inTime; } } public float ItemLength { get { return itemLength; } set { itemLength = value; } } } }