add endday

This commit is contained in:
2026-08-12 12:19:15 +02:00
parent c9f0dbdac0
commit 81d7a213cd
6 changed files with 34 additions and 55 deletions

View File

@@ -6,11 +6,11 @@ public partial class CurrentTimeLine : Panel
[Export]
public float Speed = 15f;
public bool Running { get; private set; }
private bool _running;
public override void _Process(double delta)
{
if (!Running)
if (!_running)
return;
var pos = OffsetTransformPosition;
@@ -21,6 +21,12 @@ public partial class CurrentTimeLine : Panel
public void Start()
{
Running = true;
_running = true;
}
public void Stop()
{
_running = false;
OffsetTransformPosition = Vector2.Zero;
}
}