15 lines
466 B
GDScript
15 lines
466 B
GDScript
extends Label
|
|
|
|
func _ready() -> void:
|
|
Session.team_won.connect(on_team_won)
|
|
|
|
func on_team_won(team: Session.TEAMS):
|
|
match team:
|
|
Session.TEAMS.DEFENCE:
|
|
text = "ПОБЕДА КОМАНДЫ ЗАЩИТНИКОВ"
|
|
Session.TEAMS.ATTACK:
|
|
text = "ПОБЕДА КОМАНДЫ АТАКУЮЩИХ"
|
|
var tween = create_tween()
|
|
tween.tween_property(self,"modulate",Color.WHITE,2)
|
|
tween.tween_interval(3.5)
|
|
tween.tween_property(self,"modulate",Color.TRANSPARENT,1)
|