citylimits/src/newgame.gd

8 lines
166 B
GDScript3
Raw Normal View History

extends Control
func _on_CreateBtn_pressed():
var city_name = $CityNameEdit.text
CityData.city_name = city_name
get_tree().change_scene("res://src/world.tscn")