First, make sure the enemy has the "Enemy" tag. Also, A Kinematic Rigidbody 2d cannot collide with another; at least one of the rigidbodies must be set to Dynamic. Since your sword is Kinematic, your enemy must be Dynamic..
↧