27 lines
465 B
C#
27 lines
465 B
C#
using Godot;
|
|
using yourareanaiceo;
|
|
|
|
public partial class CurrentTimeLine : Panel
|
|
{
|
|
[Export]
|
|
public float Speed = 15f;
|
|
|
|
public bool Running { get; private set; }
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
if (!Running)
|
|
return;
|
|
|
|
var pos = OffsetTransformPosition;
|
|
pos.Y += Speed * delta.toFloat();
|
|
|
|
OffsetTransformPosition = pos;
|
|
}
|
|
|
|
public void Start()
|
|
{
|
|
Running = true;
|
|
}
|
|
}
|