Refactor: Added explicit typing and void return types
- Introduced explicit typing to variables and functions across multiple scripts for better code clarity. - Specified 'void' as the return type for functions that do not return a value. - Removed redundant code in some scripts.
This commit is contained in:
parent
a62cd6018e
commit
2a9e78b52e
37 changed files with 216 additions and 248 deletions
|
|
@ -2,14 +2,14 @@ extends CanvasLayer
|
|||
|
||||
signal transitioned
|
||||
|
||||
func _ready():
|
||||
func _ready() -> void:
|
||||
$AnimationPlayer.play("fade_to_normal")
|
||||
|
||||
func transition():
|
||||
func transition() -> void:
|
||||
$AnimationPlayer.play("fade_to_black")
|
||||
Log.pr("Fading to black")
|
||||
|
||||
func _on_animation_player_animation_finished(anim_name:StringName):
|
||||
func _on_animation_player_animation_finished(anim_name : StringName) -> void:
|
||||
if anim_name == "fade_to_black":
|
||||
Log.pr("Sending transitioned signal...")
|
||||
emit_signal("transitioned")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue