More from previous commit
This commit is contained in:
@ -9,16 +9,17 @@ func _ready():
|
|||||||
light_energy = 0
|
light_energy = 0
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
if is_vaping:
|
if GlobalSettings.HasVape:
|
||||||
if light_energy < MaxPow:
|
if is_vaping:
|
||||||
light_energy += 1 * delta
|
if light_energy < MaxPow:
|
||||||
else:
|
light_energy += 1 * delta
|
||||||
|
else:
|
||||||
|
if light_energy > 0:
|
||||||
|
light_energy -= .1
|
||||||
|
if light_energy <= 0:
|
||||||
|
hide()
|
||||||
if light_energy > 0:
|
if light_energy > 0:
|
||||||
light_energy -= .1
|
show()
|
||||||
if light_energy <= 0:
|
|
||||||
hide()
|
|
||||||
if light_energy > 0:
|
|
||||||
show()
|
|
||||||
|
|
||||||
func on():
|
func on():
|
||||||
is_vaping = true
|
is_vaping = true
|
||||||
|
|||||||
Reference in New Issue
Block a user