Hit or be hit?

I cant seem to find Enable input in the player controller?
You said “cast to” what node? character?
I am so lost in this.
All I want to know is there a way to have the 2d enemy overlap My character, and send a command that if my character fight stance is on or off.
If on the I want my enemy to destroy it self and spawn again.
If off I want my character to destroy him self.
I hope this helps?
And thanks for the help you gave me.
Hope to heir more help from you.