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

🔧 Change again goal access mode

This commit is contained in:
Steffo 2022-04-02 23:22:38 +02:00
parent 0c7d39a815
commit 11b8ae3652
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -2,12 +2,12 @@ extends Node
export var movement_per_second: float = 32.0
export var goal_absolute_path: String = "Game/Fire"
export var goal_path: String = "../../Fire"
onready var target: KinematicBody2D = get_parent()
# TODO: Use a better algorithm
onready var goal: StaticBody2D = get_tree().root.get_node(goal_absolute_path)
onready var goal: StaticBody2D = get_node(goal_path)
signal touching_goal