20 lines
371 B
C#
20 lines
371 B
C#
using UnityEditor.Playables;
|
|
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
|
|
public class TimelineSupport : MonoBehaviour
|
|
{
|
|
private PlayableDirector _director;
|
|
|
|
private void Awake()
|
|
{
|
|
_director = GetComponent<PlayableDirector>();
|
|
}
|
|
|
|
public void PlayRequest(float delay)
|
|
{
|
|
_ = Util.RunDelayed(delay,()=>_director.Play());
|
|
}
|
|
|
|
}
|