godot_experiments/experiments/station_label.gd

7 lines
174 B
GDScript3
Raw Normal View History

2024-04-19 13:15:35 +08:00
extends Node2D
func _init_station_name_and_position(name, enName, i):
$StationName/Name.text = name
$StationName/EnName.text = enName
self.translate(Vector2(100 * i, 0))