CyberTower/scripts/ui/finish_screen.gd

16 lines
460 B
GDScript3
Raw Normal View History

2024-02-16 15:35:39 +00:00
extends Control
@export var stats: Statistics
2024-02-16 16:55:13 +00:00
@export var survived_indicator: Label
@export var wave_indicator: Label
@export var enemies_indicator: Label
@export var bullet_indicator: Label
2024-02-16 15:35:39 +00:00
func _show():
2024-02-16 16:55:13 +00:00
survived_indicator.text = "%.2fs" % (stats.get_time_survived() / 1000.0)
wave_indicator.text = "%d" % stats.get_current_wave()
enemies_indicator.text = "%d" % stats.enemies_defeated
bullet_indicator.text = "%d" % stats.bullet_shoot
2024-02-16 15:35:39 +00:00
visible = true