Hello.
I have a problem with my RPG game project. I have a script with sword attack animation. And when it fall and begin to rise I want to call a function, witch will subtract HP from my enemy.
I try to solve it with a trigger colider , witch will represent sword distance, and when sword begin to rise i want to make a function to check if enemy colider colide with sword colider.
About what I have alredy: swordDmg in double , Hp i double , sword attack script. I write it all in C# and I prefer it , but JS will be fine to. For evry solution I will be very thankful.
↧