Constructor
new ItemPickup(gameItemConfig)
- Source:
Description
Parameters:
Name | Type | Description |
---|---|---|
gameItemConfig |
ClubCrawler.Types.GameItemConfig | The game item config as generated by Tiled and the Parser |
Extends
- Phaser.GameObjects.Image
Methods
onPlayerTouch()
- Source:
If succesfully added to inventory, the pickup will be deleted.