mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-22 08:04:21 +00:00
11 lines
144 B
GDScript3
11 lines
144 B
GDScript3
|
extends Camera2D
|
||
|
class_name FollowCamera
|
||
|
|
||
|
|
||
|
@export var target: Node2D
|
||
|
|
||
|
|
||
|
func _physics_process(_delta):
|
||
|
if target:
|
||
|
position = target.position
|