class_name WalkingState extends State func update(): if Global.player.velocity.length() == 0.0: pass ##transition.emit("IdleState")