|
|
|
|
@ -19,7 +19,13 @@ public partial class VesnaAnimations : Node
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Signal] public delegate void LookDirectionEventHandler(Vector2 direction);
|
|
|
|
|
|
|
|
|
|
public override void _Ready()
|
|
|
|
|
public override void _EnterTree()
|
|
|
|
|
{
|
|
|
|
|
// calling with a 1-frame delay to avoid race conditions.
|
|
|
|
|
CallDeferred(nameof(SetupSubscriptions));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SetupSubscriptions()
|
|
|
|
|
{
|
|
|
|
|
InventoryManager.Instance.playerInventory.InventoryContentsChanged += HandleNewItemInInventory;
|
|
|
|
|
}
|
|
|
|
|
|