using Babushka.scripts.CSharp.Common.CharacterControls; using Godot; namespace Babushka.scripts; public partial class spiritAnimation : AnimationPlayer { [Export] private Player2D _player; [Export] private Node2D _offerings; public override void _UnhandledInput(InputEvent @event) { if (@event is InputEventKey eventKey) { if (eventKey.Pressed && eventKey.Keycode == Key.Alt) { _player.PlayPickUpAnimation(); _offerings.Visible = true; } if (eventKey.Pressed && eventKey.Keycode == Key.Space) { Active = true; Play("hand_stretch"); } } } }