ソースを参照

Fix style in GodotScript code for if (#7848)

* Style: remove braces on condition in godot code

* Update 07.killing_player.rst

* Update 09.adding_animations.rst
Jesus 1 年間 前
コミット
16015bbfcf

+ 1 - 1
getting_started/first_3d_game/06.jump_and_squash.rst

@@ -244,7 +244,7 @@ With this code, if no collisions occurred on a given frame, the loop won't run.
            var collision = get_slide_collision(index)
 
            # If the collision is with ground
-           if (collision.get_collider() == null):
+           if collision.get_collider() == null:
                continue
 
            # If the collider is with a mob

+ 1 - 1
getting_started/first_3d_game/07.killing_player.rst

@@ -384,7 +384,7 @@ Finally, the longest script, ``Player.gd``:
             var collision = get_slide_collision(index)
 
             # If the collision is with ground
-            if (collision.get_collider() == null):
+            if collision.get_collider() == null:
                 continue
 
             # If the collider is with a mob

+ 1 - 1
getting_started/first_3d_game/09.adding_animations.rst

@@ -358,7 +358,7 @@ Here's the *Player* script.
             var collision = get_slide_collision(index)
 
             # If the collision is with ground
-            if (collision.get_collider() == null):
+            if collision.get_collider() == null:
                 continue
 
             # If the collider is with a mob