Fix making the camera current.

This commit is contained in:
Relintai 2023-10-08 21:04:15 +02:00
parent f094e5eac3
commit 6bc69fd248

View File

@ -489,7 +489,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()