nice nice nice
This commit is contained in:
@@ -4,9 +4,9 @@ using yourareanaiceo;
|
||||
public partial class CurrentTimeLine : Panel
|
||||
{
|
||||
[Export]
|
||||
private float _speed = 15f;
|
||||
public float Speed = 15f;
|
||||
|
||||
public bool Running { get; set; }
|
||||
public bool Running { get; private set; }
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
@@ -14,8 +14,13 @@ public partial class CurrentTimeLine : Panel
|
||||
return;
|
||||
|
||||
var pos = OffsetTransformPosition;
|
||||
pos.Y += _speed * delta.toFloat();
|
||||
pos.Y += Speed * delta.toFloat();
|
||||
|
||||
OffsetTransformPosition = pos;
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
Running = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user