The_Dark_Side_of_Earth/vines_petals/vine_node.gd

10 lines
275 B
GDScript3
Raw Normal View History

class_name VineNode extends Node2D
2025-10-03 16:36:28 +02:00
@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:
2025-10-03 16:36:28 +02:00
position = grid.get_world_position(location, offset)