diff --git a/objects/enemy/laser_wall.gd b/objects/enemy/laser_wall.gd index 5a434c9..17e6acd 100644 --- a/objects/enemy/laser_wall.gd +++ b/objects/enemy/laser_wall.gd @@ -25,6 +25,12 @@ func _physics_process(delta): line.visible = false sparks.emitting = false +func switch_action(): + Console.print("Disable laser") + cast.enabled = false + off_time = INF + on_time = 0 + func _enable_laser(): cast.enabled = true timer.wait_time = on_time