Optionalconfig: InteractableConfigCheck if a game object is within interaction range. Call this in update() with the player reference.
Called when the component is added to an entity
Called when the component is removed or entity is destroyed
Set up proximity-based interaction. Call checkInteraction(player)
each frame — fires the callback when player is in range and presses interact.
Called when the owning entity is recycled from a pool. Reset internal state to defaults.
Attempt interaction — fires callback if in range.
Called every frame
Makes an entity interactive — handles hover, click, and interaction zones. Useful for NPCs, items, doors, switches.