diff --git a/Assets/components/vapelight.gd b/Assets/components/vapelight.gd index 3dc0629..8fa9bcb 100644 --- a/Assets/components/vapelight.gd +++ b/Assets/components/vapelight.gd @@ -1,7 +1,7 @@ extends SpotLight3D var Power = 0.0 -var MaxPow = 6 +var MaxPow = 10 var is_vaping = false func _ready(): @@ -13,8 +13,12 @@ func _process(delta): light_energy += 1 * delta else: if light_energy > 0: - light_energy -= .50 - + light_energy -= .1 + if light_energy <= 0: + hide() + if light_energy > 0: + show() + func on(): is_vaping = true