mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-24 17:14:23 +00:00
19 lines
248 B
GDScript
19 lines
248 B
GDScript
@icon("res://behaviours/draggable.svg")
|
|
extends Area2D
|
|
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()
|