private void Attack(EnemyStateController controller) { if (controller.PlayerSeen() && Vector2.Distance(controller.transform.position, controller.HeroTransform.position) <= controller.Stats.AttackRange) { controller.Attack(); } }