state after magic clip done
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://cqkqijsjvbasl
|
||||
Reference in New Issue
Block a user