diff --git a/scripts/ads.gd b/scripts/ads.gd index d3e3b50..ed51c5e 100644 --- a/scripts/ads.gd +++ b/scripts/ads.gd @@ -14,15 +14,11 @@ func exit_condition(): func close(): if exit_condition(): self.visible = false - # Called every frame. 'delta' is the elapsed time since the previous frame. -func _process(delta): +func _process(_delta): close() - - - func _on_button_pressed(): print("pressed") condition = true diff --git a/scripts/ads/ads_default.gd b/scripts/ads/ads_default.gd index deca7ca..11425ca 100644 --- a/scripts/ads/ads_default.gd +++ b/scripts/ads/ads_default.gd @@ -5,13 +5,12 @@ extends "res://scripts/ads.gd" func _ready(): $Panel2/Button.disabled = true pass - func exit_condition(): return condition # Called every frame. 'delta' is the elapsed time since the previous frame. -func _process(delta): +func _process(_delta): close() func _on_button_pressed():