Removes unused variable

Removes the unused 'rng' variable from the trees script.
This simplifies the code and reduces unnecessary memory allocation.
This commit is contained in:
Dan Baker 2025-06-26 15:27:56 +01:00
parent 33c525a3c0
commit 57602adddb

View file

@ -5,7 +5,6 @@ extends Node3D
@export var min_distance: float = 0.5
var spawned_positions: Array[Vector3] = []
var parent_ground_tile: GroundTile
# Remove this line: var rng: RandomClass = RandomClass.new()
func _ready():
parent_ground_tile = get_parent() as GroundTile