1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-28 19:14:23 +00:00
hella-farm/behaviours/hover_detector.gd

14 lines
225 B
GDScript3
Raw Normal View History

2024-04-15 22:17:10 +00:00
@icon("res://behaviours/hover_detector.svg")
2024-04-14 01:43:58 +00:00
extends Area2D
class_name HoverDetector
var mouse_inside = false
func _on_mouse_entered() -> void:
mouse_inside = true
func _on_mouse_exited() -> void:
mouse_inside = false