rj-action-library/Runtime/Time/SetTimeLineSpeed.cs

23 lines
345 B
C#
Raw Normal View History

2025-01-03 12:09:23 +00:00
using Godot;
namespace Rokojori
{
[GlobalClass ]
public partial class SetTimeLineSpeed : RJAction
{
[Export]
public RJTimeLine timeline;
[Export]
public float speed = 1;
public override void _OnTrigger()
{
var tm = Unique<TimeLineManager>.Get();
tm.SetSpeed( timeline, speed );
}
}
}