diff --git a/scenes/player/states/hitting.gd b/scenes/player/states/hitting.gd index 71c1436..2b3aedd 100644 --- a/scenes/player/states/hitting.gd +++ b/scenes/player/states/hitting.gd @@ -6,7 +6,7 @@ var hit_dir: String var hit_node_ref: WeakRef -func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: +func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void: print("entering hitting") player.velocity = Vector2.ZERO player.move_and_slide() diff --git a/scenes/player/states/idle.gd b/scenes/player/states/idle.gd index 58d59bf..faf5fd1 100644 --- a/scenes/player/states/idle.gd +++ b/scenes/player/states/idle.gd @@ -1,7 +1,7 @@ extends PlayerState -func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: +func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void: print("entering idle") player.velocity = Vector2.ZERO player.move_and_slide() diff --git a/scenes/player/states/running.gd b/scenes/player/states/running.gd index 279da48..57d85f7 100644 --- a/scenes/player/states/running.gd +++ b/scenes/player/states/running.gd @@ -1,7 +1,7 @@ extends PlayerState -func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: +func _enter(_previous_state_path: String, _data: Dictionary[String, Variant] = {}) -> void: print("entering running") player.move_and_slide()