using Godot; namespace AceFieldNewHorizon.Scripts.System; public partial class ItemPickup : Node2D { public const string PickupGroupName = "ItemPickupTarget"; [Export] public string ItemId { get; set; } = ""; [Export] public int Quantity { get; set; } = 1; [Export] public bool Infinite { get; set; } = false; private Sprite2D _sprite; private Label _quantityLabel; private Sprite2D _shadowSprite; // Called when the node enters the scene tree public override void _Ready() { var area = GetNode("Area2D"); area.BodyEntered += OnBodyEntered; _sprite = GetNode("Sprite2D"); UpdateTexture(); // Get the Label node for quantity if (HasNode("Label")) { _quantityLabel = GetNode