Attack,Health and enemy health.

HI, I have almost finished making my rpg but the main thing that is really annoying me is the attack system, basically what i need is an Attack,Health and enemy health system that when u click, ur sword plays an animation and if that sword hits an enemy it will take off the enemies health.

thx

You may attach a collider to your sword gameobject. Whenever the collider hits another collider, you will get the collision info and you can send a message to the other collider’s gameobject to decrease his health point.

Is that an answer to your request? It is not very clear what you ask for.