mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-12-02 09:47:59 +01:00
44 lines
No EOL
1 KiB
C#
44 lines
No EOL
1 KiB
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
/// <summary>
|
|
/// A timeline action that has some paired object that has a fixed length.
|
|
/// This is ideal for items like Audio clips and Animation clips.
|
|
/// </summary>
|
|
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; }
|
|
}
|
|
}
|
|
} |