From cc482dc465508d5f495033b95d567c87614598fc Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 5 Jan 2023 12:53:29 +0100 Subject: [PATCH] Rename item --- assets/Scripts/Game/Items/ItemSpawner.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/Scripts/Game/Items/ItemSpawner.ts b/assets/Scripts/Game/Items/ItemSpawner.ts index 223143c..ee1b20b 100644 --- a/assets/Scripts/Game/Items/ItemSpawner.ts +++ b/assets/Scripts/Game/Items/ItemSpawner.ts @@ -19,8 +19,8 @@ export class ItemSpawner extends Component { item.PickupEvent.on(this.return, this); } - private return(gold: Item): void { - gold.PickupEvent.off(this.return); - this.itemPool.return(gold); + private return(item: Item): void { + item.PickupEvent.off(this.return); + this.itemPool.return(item); } }