Merge pull request #258 from namelessvoid/fix-typo-in-example

Add missing 'not' in HSM state example
This commit is contained in:
Serhii Snitsaruk 2024-12-16 12:36:22 +01:00 committed by GitHub
commit db827a8d30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ Let's illustrate this with a practical code example:
func _idle_update(delta: float) -> void:
var dir: Vector2 = Input.get_vector(
&"ui_left", &"ui_right", &"ui_up", &"ui_down")
if dir.is_zero_approx():
if not dir.is_zero_approx():
hsm.dispatch(&"movement_started")