minor tweaks
This commit is contained in:
@@ -28,8 +28,9 @@ func _ready():
|
||||
|
||||
func _process(delta):
|
||||
#once max particles reached delete from scene
|
||||
if level_control.particle_number >= (particle_number + level_control.MAX_PARTICLES):
|
||||
_on_timer_timeout()
|
||||
if level_control != null: #replace this check when level reload works properly
|
||||
if level_control.particle_number >= (particle_number + level_control.MAX_PARTICLES):
|
||||
_on_timer_timeout()
|
||||
|
||||
func _on_timer_timeout():
|
||||
collision_shape.disabled = true
|
||||
|
||||
Reference in New Issue
Block a user