1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-25 09:34:24 +00:00
hella-farm/behaviours/move_towards_mouse.gd

9 lines
185 B
GDScript3
Raw Normal View History

extends MoveTowards
class_name MoveTowardsMouse
@onready var game := MainGame.get_ancestor(self)
func get_followed_global_position():
return game.camera.get_global_mouse_position()