I want to make a melee comblat. Now I used the OnControllerColliderHit to work between my character and enemy. But the problem before the script is counting in many time when my character is playing the attack animation. So now I but the cool down timer to prevent it. Finally is ok, but now the problem is the animation between the combo. Sometime the enemy hitted animation will play when I start the combo 2, but sometime will not. What is the problem? Is it the script or animation problem?
below is the script I put
Also, if I want to work melee comblat, I use colliderhit to do or use physics.raycast to do is better?
Can someone help me
See videos of Burg Zerg Arcade, it teaches the basics of this, plus a full RPG, here's the link:
5. Unity3d Tutorial - Melee Combat 1/3
6. Unity3d Tutorial - Melee Combat 2/3
7. Unity3d Tutorial - Melee Combat 3/3
answered Apr 09 '11 at 01:32 PM
answered Apr 10 '11 at 05:16 AM