mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-22 16:14:22 +00:00
18 lines
206 B
GDScript
18 lines
206 B
GDScript
extends Node
|
|
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()
|