extends ColorRect @onready var animation = $FadingMaskAnimation # Called when the node enters the scene tree for the first time. func _ready() -> void: hide() #Handles fading transitions func fade_in(): modulate.a = 0.0 show() animation.play("fade_in") func fade_out(): animation.play("fade_out") await animation.animation_finished hide()