소스 검색

Change example signal name to animation_finished

The AnimationPlayer signal used to demonstrate the yield function is called "animation_finished".
Johan Thelin 5 년 전
부모
커밋
90c8056e8c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -1486,7 +1486,7 @@ signal is received, execution will recommence. Here are some examples::
     yield(get_tree(), "idle_frame")
 
     # Resume execution when animation is done playing.
-    yield(get_node("AnimationPlayer"), "finished")
+    yield(get_node("AnimationPlayer"), "animation_finished")
 
     # Wait 5 seconds, then resume execution.
     yield(get_tree().create_timer(5.0), "timeout")