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

25 lines
406 B
GDScript3
Raw Normal View History

2024-01-28 02:34:46 +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.
2024-01-28 18:25:34 +01:00
func _process(_delta):
2024-01-28 02:34:46 +01:00
close()
func _on_button_pressed():
print("pressed")
condition = true