flashlight_seconds
This commit is contained in:
parent
22ac0db4aa
commit
d795e6efd8
|
@ -38,6 +38,12 @@
|
|||
"name": "bb_counter",
|
||||
"type": 0,
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"id": "1672728461-648",
|
||||
"name": "flashlight_seconds",
|
||||
"type": 0,
|
||||
"value": "0.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
"1667755202-648",
|
||||
"1667770005-207",
|
||||
"1672699752-574",
|
||||
"1672699872-250"
|
||||
"1672699872-250",
|
||||
"1672728461-648"
|
||||
],
|
||||
"folders": {
|
||||
|
||||
|
|
|
@ -22,3 +22,7 @@ func toggle():
|
|||
visible = not visible
|
||||
$AudioStreamPlayer.pitch_scale = rand_range(0.5, 1.2)
|
||||
$AudioStreamPlayer.play()
|
||||
|
||||
func _process(delta):
|
||||
if visible:
|
||||
Dialogic.set_variable("flashlight_seconds", Dialogic.get_variable("flashlight_seconds")+delta)
|
||||
|
|
Loading…
Reference in New Issue