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

15 lines
308 B
GDScript3
Raw Normal View History

2024-01-28 18:13:30 +01:00
extends "res://scripts/ads/ads_default.gd"
2024-01-28 19:16:41 +01:00
@onready var button := $MusicButton/Button
@onready var player := $AudioStreamPlayer
2024-01-28 18:13:30 +01:00
func _ready():
2024-01-28 19:16:41 +01:00
await get_tree().create_timer(randf_range(0, 2.5)).timeout
player.play()
2024-01-28 18:13:30 +01:00
func exit_condition():
return condition
2024-01-28 19:16:41 +01:00
func _on_button_pressed():
condition = true