Loyal Lawyer

This is a game I designed and created myself. The assets are not all mine. I only made the character models.
Enemy :

void Patrol()
{
Vector3 target = s_Waypoints[s_CurrentWaypoint].position;
target.y = transform.position.y;

Vector3 moveDirection = target - transform.position;

if(moveDirection.magnitude < 0.5f) { if(s_CurTime == 0) { s_CurTime = Time.time; } if((Time.time - s_CurTime) >= s_PauseDuration)
{
s_CurrentWaypoint++;
s_CurTime = 0;
}
}
else
{
var rotation = Quaternion.LookRotation(target - transform.position);
transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * s_DampingLook);
s_Character.Move(moveDirection.normalized * s_PatrolSpeed * Time.deltaTime);
}
}