21 lines
523 B
C#
21 lines
523 B
C#
using System.Collections;
|
|
using Yarn.Unity;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public static class TimelineYarnCommand
|
|
{
|
|
[YarnCommand("play_timeline")]
|
|
public static IEnumerator PlayTimeline(string timelineName)
|
|
{
|
|
yield return TimelineCenter.Instance.PlayTimelineAsync(timelineName);
|
|
}
|
|
|
|
|
|
[YarnCommand("reset_timeline")]
|
|
public static void ResetTimeline(string timelineName)
|
|
{
|
|
TimelineCenter.Instance.ResetTimeline(timelineName);
|
|
}
|
|
}
|
|
} |