Pickup2D
Namespace: StackInventory.Game
Inherits: Area2D
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
Amount | int |
Methods
Section titled “Methods”_Ready
Section titled “_Ready”void _Ready()TryPickup
Section titled “TryPickup”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
OnBodyEntered
Section titled “OnBodyEntered”void OnBodyEntered(Node2D body)