Hi! I am currently working on making a 3D game called Hasmon on unity. Right now, I am trying to develop some sort of enemy AI script, where enemies do their thing until you get too close to them, in which case they attack you. I have a basic script where if you collide with them, it depletes some of your health, and if you attack them, they die, but it doesn't really work that well, as it's hard to collide with them and it doesn't feel quite right. Does anybody have any ideas for a good althorithm?