mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-10 00:56:06 +00:00
Added gold count to the game
This commit is contained in:
@@ -64,9 +64,8 @@ export class ItemManager extends Component {
|
||||
if (!this.itemTypeToAction.has(item.ItemType)) throw new Error("Does not have behaviour set for " + item.ItemType);
|
||||
|
||||
this.pickupEffectManager.showEffect(item.node.worldPosition);
|
||||
this.pickupEvent.trigger(item.ItemType);
|
||||
|
||||
this.itemTypeToAction.get(item.ItemType)();
|
||||
this.pickupEvent.trigger(item.ItemType);
|
||||
|
||||
item.pickup();
|
||||
}
|
||||
|
Reference in New Issue
Block a user