You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
741 B
30 lines
741 B
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");
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
} |