I’m not good at english and unity beginner.
There are two prefabs (hunter, warrior)
‘Hunter’ has 'attack’scripts
Also ‘warrior’ has 'attack’scripts too
Each scripts has different variables but 'damage
I want to use them by 'getComponent ().damage in the 'OntriggerEnter2D
Will it work saperately??