rokojori_action_library/Runtime/Time/Duration/SecondsDuration.cs

32 lines
540 B
C#
Raw Normal View History

2025-06-12 09:03:02 +00:00
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SecondsDuration:Duration
{
[Export]
public float seconds;
public override float GetDurationInSeconds()
{
return seconds;
}
2025-12-10 14:17:07 +00:00
public static SecondsDuration Create( float seconds, TimeLine tl )
{
var sd = new SecondsDuration();
sd.seconds = seconds;
sd.timeLine = tl;
return sd;
}
2025-06-12 09:03:02 +00:00
}
}