TowerDefense/bullet_container.gd

9 lines
181 B
GDScript3
Raw Normal View History

2025-06-18 12:19:43 +02:00
extends Node3D
func _ready() -> void:
EventBus.bullet_shooted.connect(_on_EventBus_bullet_shooted)
func _on_EventBus_bullet_shooted(bullet : Bullet) -> void:
add_child(bullet)