Fix setting the camera to current.

This commit is contained in:
Relintai 2023-10-08 21:01:51 +02:00
parent 8020295482
commit b9d69ab66c

View File

@ -508,7 +508,7 @@ func on_c_controlled_changed():
camera = Camera2D.new()
camera.zoom = Vector2(0.9, 0.9)
add_child(camera)
camera.current = true
camera.make_current()
#var uiscn : PackedScene = ResourceLoader.load("res://ui/player_ui/player_ui.tscn")
#var ui = uiscn.instance()