game: add weapon base and sword
This commit is contained in:
@@ -26,11 +26,13 @@ func _on_timer_timeout() -> void:
|
||||
new_enemy.target = target
|
||||
add_child(new_enemy)
|
||||
|
||||
|
||||
func _on_stop_spawning(val: bool):
|
||||
if val:
|
||||
timer.stop()
|
||||
elif timer.is_stopped():
|
||||
timer.start()
|
||||
|
||||
|
||||
func _on_set_spawn_rate(val: float):
|
||||
timer.wait_time = 1 / val
|
||||
|
Reference in New Issue
Block a user