Kill the enemy with a collected power

hello. How can I make my enemies vulnerable when collecting or destroying with an object? and in turn change color. Thank you

here are the textures, they are animated

cap1

here the nodes of the object that by destroying it, my enemies become vulnerable