Attack system?

Helloo guys, well I am currently working on an attack system for my game but I want to make it as simple as posible (keep things simple is very important for me) I have a couple of ideas like adding a detection range for attacks, if the enemy comes and play its attack animation close to my character, my health will go down (same thing with enemies) other way would be to give colliders to the swords of my characters and detect when they hit each other but I think that would be harder to code.

I just want to ask for other ideas or ways to implement this?

I answered a question some time ago about a simple melee attack: melee combat - Questions & Answers - Unity Discussions

There’s another question with a trigger attached to the weapon: sending a sendmessage to a completely different gameobject - Questions & Answers - Unity Discussions

NOTE: This one was designed to be attached to the enemy’s weapon, thus it checks if the target tag is “Player”; to hit enemies, you should compare the tag to “Enemy” or whatever tag you use to identify them.