Autopickup for player

This commit is contained in:
MaddoScientisto 2026-03-01 20:59:11 +01:00
commit 8d52b49e57
6 changed files with 242 additions and 62 deletions

View file

@ -107,10 +107,16 @@ public partial class ItemPickup3D : Interactable3D
QueueFree();
}
/// <summary>
/// Auto-pickup items are handled exclusively by <c>AutoPickupModule3D</c>.
/// Returning <c>false</c> here prevents them from entering the normal
/// interaction selector, so they cannot be manually activated by the player.
/// </summary>
public override bool CanActivate() => !_autoPickup;
public void Collect()
{
AddItemsToInventory();
}
public void SetSprite(Texture2D sprite)