1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 20:54:19 +00:00

🐛 Fix AttractedToMovement working only with StaticBody2D

This commit is contained in:
Steffo 2022-04-03 21:32:27 +02:00
parent 7d8c4f64fe
commit 6f16663998
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -11,7 +11,7 @@ export var goal_path: NodePath
onready var parent: KinematicBody2D = get_parent() onready var parent: KinematicBody2D = get_parent()
onready var goal: StaticBody2D = get_node(goal_path) if goal_path else null onready var goal: PhysicsBody2D = get_node(goal_path) if goal_path else null
var _goal_reached_triggered: bool = false var _goal_reached_triggered: bool = false