src/triggers/ItemGiver.js
/**
	* This method is called when the trigger should execute its action.
	*
	* @param {GameEntity} entity - The entity that touched the trigger region.
	* @return {Trigger} A reference to this trigger.
	*/
This method is called when the trigger should execute its action.
@param {GameEntity} entity - The entity that touched the trigger region.
@return {Trigger} A reference to this trigger.
This method is called when the trigger should execute its action . @param { GameEntity } entity - The entity that touched the trigger region . @return { Trigger } A reference to this trigger .
execute( entity ) {
		const item = this.item;
		this.active = false;
		item.addItemToEntity( entity );
		item.prepareRespawn();
		return this;
	}
execute ( entity ) { const item = this . item ; this . active = false ; item . addItemToEntity ( entity ) ; item . prepareRespawn ( ) ; return this ; }
This method is called when the trigger should execute its action.
This method is called when the trigger should execute its action .
// deactivate trigger since it's only executed once // add item to entity // prepare respawn