Hi all,
i am struggling with this problem for very long time and i have never found right solution. So, let me explain my problem ( i don’t know how good will you understand because my English is not so good) :
I have a game where player click on a icon of monster he wants to spawn from his base, and that monster (or monsters) go right to enemy base. They deal damage buy colliding or with arrows if they are ranged, but let get on problem - I have base class for all of that monsters ( Called BaseMonster ) and in that class, i have TakeDamage function, but i have unique script for all of my monsters because some of them have reduced damage etc. Problem is, when monsters collide, i can’t know exactly name of the script, but i can not use ‘SendMessage’ because i need more then one parameter for that function.
I hope someone will give me right answer, i really need solution for this problem