feat: Optimized animation handler and crashing (#463)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis Ploeger
2021-11-25 23:05:17 +01:00
committed by GitHub
parent df88bd6cb6
commit 75c00b4993
3 changed files with 42 additions and 31 deletions

View File

@@ -61,9 +61,10 @@ func clear_scene() -> void:
if escoria.game_scene.get_parent() == current_scene:
current_scene.remove_child(escoria.game_scene)
current_scene.get_parent().remove_child(current_scene)
current_scene.free()
current_scene.queue_free()
current_scene = null