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

41 lines
628 B
C#

using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class TimeLine:Resource
{
[Export]
public bool isLooping = false;
[Export]
public float loopStart = 0;
[Export]
public float loopEnd = 100000;
[Export]
public float startSpeed = 1;
[Export]
public bool autoStart = true;
public float delta
{
get
{
var tm = Unique<TimeLineManager>.Get();
return tm.GetRunner( this ).currentDelta;
}
}
}
}