mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 09:34:24 +00:00
13 lines
180 B
GDScript3
13 lines
180 B
GDScript3
|
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
|