mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 01:24:23 +00:00
8f46ff5022
Also create move_towards_target
8 lines
185 B
GDScript
8 lines
185 B
GDScript
extends MoveTowards
|
|
class_name MoveTowardsMouse
|
|
|
|
@onready var game := MainGame.get_ancestor(self)
|
|
|
|
|
|
func get_followed_global_position():
|
|
return game.camera.get_global_mouse_position()
|