I have different attack animation for each weapon (Sword, Lance, …) + Player’s facing direction ( Up, Down, Left, Right) like this :
What i want to do is : when Red box hit enemy , enemy lost HP. Can you guy suggest me how to do it or give me another way to do it ?
You’d generally use colliders, including trigger colliders, unless you had a reason not to.
if i using collider , i will need to use it a lot of . Every weapon have different collider ( Because weapon range is different ) + 4 collider for 4 red box per weapon ( Player’s Facing Direction)
Gamesplusjames has done an entire tutorial series on the type of game you’re looking to make.