TowerDefense/Towers/TowerList.gd

18 lines
436 B
GDScript3
Raw Normal View History

2025-08-27 01:30:37 +02:00
extends Node3D
class_name TowerList
enum TOWERS { PIERRE, ALINE, MAXENCE, VICTORIA, EVAN, ALEX }
func _ready() -> void:
child_entered_tree.connect(_on_child_entered_tree)
child_exiting_tree.connect(_on_child_exiting_tree)
func _on_child_entered_tree(child):
#EventBus.tower_count_changed.emit(get_children().count())
pass
func _on_child_exiting_tree(child):
#EventBus.team_in_action_changed.emit(get_children().count())
pass