18 lines
436 B
GDScript3
18 lines
436 B
GDScript3
|
|
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
|