src/entities/Item.js
/**
	* Prepares the respawn of this item.
	*
	* @return {Item} A reference to this game entity.
	*/
Prepares the respawn of this item.
@return {Item} A reference to this game entity.
Prepares the respawn of this item . @return { Item } A reference to this game entity .
prepareRespawn( ) {
		this.active = false;
		this._renderComponent.visible = false;
		const audio = this.audio;
		if ( audio.isPlaying === true ) audio.stop();
		audio.play();
		this.nextSpawnTime = this.currentTime + this.respawnTime;
		return this;
	}
prepareRespawn ( ) { this . active = false ; this . _renderComponent . visible = false ; const audio = this . audio ; if ( audio . isPlaying === true ) audio . stop ( ) ; audio . play ( ) ; this . nextSpawnTime = this . currentTime + this . respawnTime ; return this ; }
Prepares the respawn of this item.
Prepares the respawn of this item .
// //