Skip to content

Pickup2D

Namespace: StackInventory.Game
Inherits: Area2D

NameTypeDescription
Amountint
void _Ready()
int TryPickup(ICollector collector)

Has the collect try pickup up items from the Pickup2D

Parameters:

  • collector -

Returns:

How many of the items from the Pickup were picked up

void OnBodyEntered(Node2D body)