add endday
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user