Player is not facing enemy

when enemy is out of range, the player will face the enemy is run towards the enemy, but if a player is in range and attacking, player is not turning towards the enemy is keeps hitting air or direction he is facing.

Make sure you have
transform.LookAt(target.transform);
as the first line in your AttackBehavior() method.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms