Made Crosshair hide when paused and show when unpaused
This commit is contained in:
@ -60,6 +60,10 @@ func _process(delta):
|
|||||||
if vapes_per_min == randi_range(10,20):
|
if vapes_per_min == randi_range(10,20):
|
||||||
will_cough = true
|
will_cough = true
|
||||||
vapes_per_min = 0
|
vapes_per_min = 0
|
||||||
|
if is_paused:
|
||||||
|
$Head/Crosshair.hide()
|
||||||
|
elif not $Head/Crosshair.visible:
|
||||||
|
$Head/Crosshair.show()
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if event.is_action("ui_text_backspace"):
|
if event.is_action("ui_text_backspace"):
|
||||||
|
|||||||
Reference in New Issue
Block a user