slightly stronger typing in dict call
This commit is contained in:
parent
40bd2f45c1
commit
56004d5b9b
3 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue