fx: sprite playing behaviour
This commit is contained in:
@@ -6,6 +6,7 @@ func enter(previous_state_path: String, data := {}) -> void:
|
||||
if data.has("target"):
|
||||
target = data["target"]
|
||||
owner.sprite.play("Hunting")
|
||||
owner.wrapper.play_sprite("Hunting")
|
||||
else:
|
||||
# default behaviour; do nothing
|
||||
finished.emit(owner.fsm.States.IDLE, {})
|
||||
|
||||
Reference in New Issue
Block a user