generated from krampus/template-godot4
19 lines
309 B
GDScript
19 lines
309 B
GDScript
extends Tool
|
|
## Pump up the jamz!
|
|
|
|
@onready var mp3_controller: MP3Controller = %MP3Controller
|
|
|
|
|
|
func unlocked() -> bool:
|
|
return World.instance.manager.mp3_player_unlocked
|
|
|
|
|
|
func fire() -> void:
|
|
if not firing:
|
|
firing = true
|
|
mp3_controller.select()
|
|
|
|
|
|
func switch_mode() -> void:
|
|
mp3_controller.cancel()
|