citylimits/scripts/newgame.gd

8 lines
168 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://scenes/game.tscn")