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

23 lines
346 B
C#
Raw Normal View History

2025-01-03 12:09:23 +00:00
using Godot;
namespace Rokojori
{
[GlobalClass ]
2025-01-08 18:46:17 +00:00
public partial class SetTimeLineSpeed : Action
2025-01-03 12:09:23 +00:00
{
[Export]
2025-01-08 18:46:17 +00:00
public TimeLine timeline;
2025-01-03 12:09:23 +00:00
[Export]
public float speed = 1;
2025-01-08 18:46:17 +00:00
protected override void _OnTrigger()
2025-01-19 20:35:51 +00:00
{
timeline = TimeLineManager.Ensure( timeline );
timeline.runner.speed = speed;
2025-01-03 12:09:23 +00:00
}
}
}