frame-of-mind/src/logic-scenes/playable.gd

7 lines
200 B
GDScript

extends Control
class_name Playable
## Awaitable that encapsulates the core interaction with this Playable
func play() -> void:
await get_tree().process_frame # Dummy wait so this is a coroutine