19 lines
342 B
C#
19 lines
342 B
C#
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());
|
|
}
|
|
|
|
}
|