mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 04:34:19 +00:00
🐛 Fix AttractedToMovement
working only with StaticBody2D
This commit is contained in:
parent
7d8c4f64fe
commit
6f16663998
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export var goal_path: NodePath
|
|||
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue