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 20:15:04 +01:00

20 lines
371 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
func _on_button2_pressed():
condition = true
player.stop()