first version of EU AI Act game
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
extends CanvasLayer
|
||||
|
||||
@onready var anim = $AnimationPlayer
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
func change_scene(path: String) -> void:
|
||||
anim.play("fade_out")
|
||||
await anim.animation_finished
|
||||
get_tree().change_scene_to_file(path)
|
||||
await get_tree().process_frame
|
||||
anim.play("fade_in")
|
||||
await anim.animation_finished
|
||||
Reference in New Issue
Block a user