Added enemy movement
This commit is contained in:
@@ -6,3 +6,9 @@ func _ready() -> void:
|
||||
super._ready()
|
||||
for weapon in _weapons:
|
||||
weapon.set_belonging(AbstractWeapon.Belonging.PLAYER)
|
||||
|
||||
|
||||
func _on_player_controller_shoot(weapon_index: int) -> void:
|
||||
if weapon_index >= _weapons.size(): return
|
||||
|
||||
_weapons[weapon_index].shoot(velocity)
|
||||
|
||||
Reference in New Issue
Block a user