Added autoshooting
This commit is contained in:
@@ -24,11 +24,6 @@ func _add_weapon(weapon: AbstractWeapon, weapon_position: Vector2) -> void:
|
||||
weapon.set_belonging(AbstractWeapon.Belonging.ENEMY)
|
||||
|
||||
|
||||
func _on_enemy_controller_shoot() -> void:
|
||||
for weapon in _weapons:
|
||||
weapon.shoot(velocity)
|
||||
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_entered() -> void:
|
||||
is_on_screen = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user