2024-04-14 05:21:24 +00:00
|
|
|
extends Area2D
|
2024-04-14 04:26:14 +00:00
|
|
|
class_name Draggable
|
|
|
|
|
|
|
|
|
|
|
|
signal dragged
|
|
|
|
signal dropped
|
|
|
|
|
|
|
|
|
|
|
|
var being_dragged: bool = false
|
|
|
|
|
|
|
|
|
|
|
|
func drag():
|
|
|
|
being_dragged = true
|
|
|
|
dragged.emit()
|
|
|
|
|
|
|
|
func drop():
|
|
|
|
being_dragged = false
|
|
|
|
dropped.emit()
|