37 lines
601 B
C#
37 lines
601 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年07月01日 星期二 14:07:05
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
namespace Logic.Timeline
|
|
{
|
|
public enum FragmentState
|
|
{
|
|
Prepare,
|
|
Playing,
|
|
Finished,
|
|
}
|
|
|
|
|
|
public abstract class FragmentBase
|
|
{
|
|
public FragmentState State;
|
|
public float StartTime;
|
|
public float Duration;
|
|
|
|
public abstract void OnStart();
|
|
|
|
public abstract void OnFinished();
|
|
|
|
public abstract void OnUpdate(float progressTime);
|
|
|
|
public virtual void Excute()
|
|
{
|
|
}
|
|
}
|
|
} |