mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 11:18:54 +00:00
Rename item
This commit is contained in:
parent
1e9250dadf
commit
cc482dc465
@ -19,8 +19,8 @@ export class ItemSpawner extends Component {
|
|||||||
item.PickupEvent.on(this.return, this);
|
item.PickupEvent.on(this.return, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private return(gold: Item): void {
|
private return(item: Item): void {
|
||||||
gold.PickupEvent.off(this.return);
|
item.PickupEvent.off(this.return);
|
||||||
this.itemPool.return(gold);
|
this.itemPool.return(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user