🚧 watering fields kinda works now
This commit is contained in:
@@ -8,7 +8,6 @@ namespace Babushka.scripts.CSharp.Common.Animation;
|
||||
public partial class VesnaAnimations : Node
|
||||
{
|
||||
[Export] private AnimatedSprite2D _sprite;
|
||||
[Export] private CpuParticles2D _wateringParticles;
|
||||
|
||||
private bool anyActionPressed;
|
||||
private string _toolString;
|
||||
@@ -144,7 +143,6 @@ public partial class VesnaAnimations : Node
|
||||
_sprite.Animation = "diagonal wateringcan";
|
||||
_sprite.Play();
|
||||
InputService.Instance.InputEnabled = false;
|
||||
_wateringParticles.Emitting = true;
|
||||
Task.Run(DelayedInputHandlerReset);
|
||||
}
|
||||
}
|
||||
@@ -152,7 +150,6 @@ public partial class VesnaAnimations : Node
|
||||
private async Task DelayedInputHandlerReset()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
_wateringParticles.Emitting = false;
|
||||
InputService.Instance.InputEnabled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user