More from previous commit
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user