update
This commit is contained in:
@@ -22,7 +22,7 @@ func _ready() -> void:
|
||||
EventBus.shield_changed.connect(_on_shield_changed)
|
||||
EventBus.entity_died.connect(_on_entity_died)
|
||||
EventBus.player_respawned.connect(_on_player_respawned)
|
||||
EventBus.class_changed.connect(_on_class_changed)
|
||||
EventBus.role_changed.connect(_on_role_changed)
|
||||
EventBus.respawn_tick.connect(_on_respawn_tick)
|
||||
EventBus.cooldown_tick.connect(_on_cooldown_tick)
|
||||
|
||||
@@ -46,8 +46,8 @@ func _on_player_respawned(_player: Node) -> void:
|
||||
func _on_respawn_tick(timer: float) -> void:
|
||||
respawn_label.text = str(ceil(timer))
|
||||
|
||||
func _on_class_changed(_player: Node, class_type: int) -> void:
|
||||
match class_type:
|
||||
func _on_role_changed(_player: Node, role_type: int) -> void:
|
||||
match role_type:
|
||||
0: class_icon.text = "T"
|
||||
1: class_icon.text = "D"
|
||||
2: class_icon.text = "H"
|
||||
|
||||
Reference in New Issue
Block a user