mirror of
https://github.com/GDQuest/godot-platformer-2d.git
synced 2026-01-23 02:14:19 +00:00
Cast value to State, add missing newline
This commit is contained in:
parent
1e73557106
commit
e24388a778
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ var _parent: State = null
|
|||
|
||||
func _ready() -> void:
|
||||
yield(owner, "ready")
|
||||
_parent = get_parent()
|
||||
_parent = get_parent() as State
|
||||
|
||||
|
||||
func unhandled_input(event: InputEvent) -> void:
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ func _on_Player_health_depleted() -> void:
|
|||
|
||||
|
||||
func _on_Events_checkpoint_visited(checkpoint_name: String) -> void:
|
||||
last_checkpoint = LevelLoader._level.get_node("Checkpoints/%s" % checkpoint_name)
|
||||
last_checkpoint = LevelLoader._level.get_node("Checkpoints/%s" % checkpoint_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue