mirror of
https://github.com/Cookie-CHR/OfficeMadness-LD51.git
synced 2024-11-21 22:34:19 +00:00
21 lines
376 B
GDScript
21 lines
376 B
GDScript
extends TextureProgress
|
|
|
|
|
|
var finished = false
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
value = 0
|
|
max_value = 200
|
|
|
|
func _process(delta):
|
|
if not finished:
|
|
if value >= max_value:
|
|
finished = true
|
|
MManager.on_finished()
|
|
else:
|
|
self.value -= delta*20
|
|
|
|
func boost():
|
|
value +=10
|
|
if value >= max_value:
|
|
MManager.on_finished()
|