9 lines
275 B
GDScript
9 lines
275 B
GDScript
class_name VineNode extends Node2D
|
|
|
|
@export var vine : Vine
|
|
@onready var grid : Grid = get_tree().get_root().get_node("main/Earth/Grid")
|
|
@export var location : Vector2
|
|
@export var offset : Vector2
|
|
|
|
func _ready() -> void:
|
|
position = grid.get_world_position(location, offset)
|