Rename item

This commit is contained in:
Martin 2023-01-05 12:53:29 +01:00
parent 1e9250dadf
commit cc482dc465

View File

@ -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);
}
}