mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 04:34:19 +00:00
🔧 Change again goal access mode
This commit is contained in:
parent
0c7d39a815
commit
11b8ae3652
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ extends Node
|
||||||
|
|
||||||
|
|
||||||
export var movement_per_second: float = 32.0
|
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()
|
onready var target: KinematicBody2D = get_parent()
|
||||||
# TODO: Use a better algorithm
|
# 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
|
signal touching_goal
|
||||||
|
|
Loading…
Reference in a new issue