Disable Input while enabling another

Here’s my problem script:

This is a script that enables actors, for example ressource gathering points, to get the input data from the player (controller).

I just found a problem where when two objects having this script are next to each other, and I enter one while exiting the other, the input isn’t enabled for the newly entered one.

Do I miss something obvious or am I trying an entirely wrong path to accomplish this?
I’m less proficient than a beginner, so please be so kind to explain what might be wrong with this script.

Thank you very much for every helpful hint and please ignore any spelling and grammar mistakes ^^

Is there noone who could help me with this?