Exemple #1
0
 private void Attack(EnemyStateController controller)
 {
     if (controller.PlayerSeen() && Vector2.Distance(controller.transform.position, controller.HeroTransform.position) < controller.Stats.AttackRange)
     {
         controller.BatteryAttack();
     }
 }