More from previous commit

This commit is contained in:
2024-08-16 18:05:41 -05:00
parent ef2f505ab3
commit a97a4e292a

View File

@ -9,16 +9,17 @@ func _ready():
light_energy = 0
func _process(delta):
if is_vaping:
if light_energy < MaxPow:
light_energy += 1 * delta
else:
if GlobalSettings.HasVape:
if is_vaping:
if light_energy < MaxPow:
light_energy += 1 * delta
else:
if light_energy > 0:
light_energy -= .1
if light_energy <= 0:
hide()
if light_energy > 0:
light_energy -= .1
if light_energy <= 0:
hide()
if light_energy > 0:
show()
show()
func on():
is_vaping = true