Hello guys. I am pretty new in Unity and I am trying to solve how to connect a function from “CharacterController” script to “LightAnimation” script.
So basically what I want is, when I press Attack (or action button which is left mouse) near the pillar, the pillar lights turning on to unlock a bridge.
That’s what I’ve got so far:
Then, I’ve got that script for the character attack:

Dont know if the character script I’m showing is enough, but if it’s not, just tell me and I will upload more script codes from the character.
Thank you so much for your help!!!
