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-03 12:09:23 +00:00
|
|
|
{
|
|
|
|
var tm = Unique<TimeLineManager>.Get();
|
|
|
|
tm.SetSpeed( timeline, speed );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|