15 lines
389 B
GDScript
15 lines
389 B
GDScript
extends Control
|
|
class_name Playable
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
|
|
## Awaitable that encapsulates the core interaction with this Playable
|
|
func play() -> void:
|
|
push_warning("Playeable[base].play() not overridden")
|
|
await get_tree().process_frame # Dummy wait so this is a coroutine
|
|
|
|
func handle_hover(_area: Draggable):
|
|
#prints("Playable[base].handle_hover", _area, _area.name)
|
|
pass
|