using UnityEngine;
namespace CinemaDirector
{
///
/// An action that has some firetime and duration.
///
public abstract class TimelineAction : TimelineItem
{
[SerializeField]
protected float duration = 0f;
///
/// The duration of the action
///
public float Duration
{
get { return duration; }
set { duration = value; }
}
///
/// The end time of this action. (Firetime + Duration).
///
public float EndTime
{
get
{
return firetime + duration;
}
}
///
/// Set a default duration of 5 seconds for most actions.
///
public override void SetDefaults()
{
duration = 5f;
}
}
}