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/ads_music.gd
2024-01-28 19:16:41 +01:00

14 lines
308 B
GDScript

extends "res://scripts/ads/ads_default.gd"
@onready var button := $MusicButton/Button
@onready var player := $AudioStreamPlayer
func _ready():
await get_tree().create_timer(randf_range(0, 2.5)).timeout
player.play()
func exit_condition():
return condition
func _on_button_pressed():
condition = true