mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 01:14:59 +01:00
55 lines
659 B
C#
55 lines
659 B
C#
using UnityEngine;
|
|
|
|
namespace CinemaDirector
|
|
{
|
|
public abstract class TimelineActionFixed : TimelineAction
|
|
{
|
|
[SerializeField]
|
|
private float inTime;
|
|
|
|
[SerializeField]
|
|
private float outTime = 1f;
|
|
|
|
[SerializeField]
|
|
private float itemLength;
|
|
|
|
public float InTime
|
|
{
|
|
get
|
|
{
|
|
return inTime;
|
|
}
|
|
set
|
|
{
|
|
inTime = value;
|
|
base.Duration = outTime - inTime;
|
|
}
|
|
}
|
|
|
|
public float OutTime
|
|
{
|
|
get
|
|
{
|
|
return outTime;
|
|
}
|
|
set
|
|
{
|
|
outTime = value;
|
|
base.Duration = outTime - inTime;
|
|
}
|
|
}
|
|
|
|
public float ItemLength
|
|
{
|
|
get
|
|
{
|
|
return itemLength;
|
|
}
|
|
set
|
|
{
|
|
itemLength = value;
|
|
}
|
|
}
|
|
}
|
|
}
|