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