Bläddra i källkod

Fix syntax errors in Sync the gameplay with audio and music (#6016)

Weetbix 3 år sedan
förälder
incheckning
58e03e2c98
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      tutorials/audio/sync_with_audio.rst

+ 2 - 2
tutorials/audio/sync_with_audio.rst

@@ -41,7 +41,7 @@ Add these two and it's possible to guess almost exactly when sound or music will
     var time_delay
     var time_delay
 
 
 
 
-    func _ready()
+    func _ready():
         time_begin = OS.get_ticks_usec()
         time_begin = OS.get_ticks_usec()
         time_delay = AudioServer.get_time_to_next_mix() + AudioServer.get_output_latency()
         time_delay = AudioServer.get_time_to_next_mix() + AudioServer.get_output_latency()
         $Player.play()
         $Player.play()
@@ -119,7 +119,7 @@ Here is the same code as before using this approach:
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript
 
 
 
 
-    func _ready()
+    func _ready():
         $Player.play()
         $Player.play()