bullet counter
This commit is contained in:
parent
3f2b7e3bd3
commit
5f732e1e6f
7 changed files with 30 additions and 2 deletions
|
|
@ -3,7 +3,12 @@ extends CanvasLayer
|
|||
|
||||
@export_group("Internal References")
|
||||
@export var _fps_counter: Label
|
||||
@export var _bullet_counter: Label
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not visible:
|
||||
return
|
||||
|
||||
_fps_counter.text = str(Engine.get_frames_per_second())
|
||||
_bullet_counter.text = str(get_tree().get_node_count_in_group(&"bullets"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue