Hello guys
I’m not good at english and unity beginner.
I hope you can understand my question.
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??