In the battle start event i would like to run a function from a component attached to the prefab of all combatants. Kindly guide me on how to proceed.
I also want to run a function from a component attached to the prefab when i use any ability (attack, magic, cast, item etc). I want to send the target position so i can move the player to it. I know i can just use events to move the player but i want to do it through the script.
EDIT - i did try searching the forums but no matter what keywords i use the search results are no where close to what i need.