Anri/AdBlockNot
Archived
1
0
Fork 0
This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
AdBlockNot/scripts/ads.gd

29 lines
410 B
GDScript3
Raw Permalink Normal View History

2024-01-28 16:25:02 +01:00
extends Control
var condition = false
# Called when the node enters the scene tree for the first time.
func _ready():
pass
func exit_condition():
return condition
func close():
if exit_condition():
self.visible = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
close()
func _on_button_pressed():
print("pressed")
condition = true