Global refactor
This commit is contained in:
parent
3868af29e3
commit
0589ca4e23
180 changed files with 249 additions and 401 deletions
|
|
@ -1,22 +0,0 @@
|
|||
extends Label
|
||||
|
||||
@export var our_side: bool
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
Session.round_started.connect(update)
|
||||
Session.session_started.connect(update)
|
||||
|
||||
func update():
|
||||
if our_side:
|
||||
match Lobby.get_team():
|
||||
Session.TEAMS.DEFENCE:
|
||||
text = str(Session.defender_score)
|
||||
Session.TEAMS.ATTACK, Session.TEAMS.SPECTATE, Session.TEAMS.UNASSIGNED:
|
||||
text = str(Session.attacker_score)
|
||||
else:
|
||||
match Lobby.get_team():
|
||||
Session.TEAMS.DEFENCE:
|
||||
text = str(Session.attacker_score)
|
||||
Session.TEAMS.ATTACK, Session.TEAMS.SPECTATE, Session.TEAMS.UNASSIGNED:
|
||||
text = str(Session.defender_score)
|
||||
Loading…
Add table
Add a link
Reference in a new issue