Skip to content

Commit 16015bb

Browse files
authored
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
1 parent b4fdcc6 commit 16015bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

getting_started/first_3d_game/06.jump_and_squash.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ With this code, if no collisions occurred on a given frame, the loop won't run.
244244
var collision = get_slide_collision(index)
245245

246246
# If the collision is with ground
247-
if (collision.get_collider() == null):
247+
if collision.get_collider() == null:
248248
continue
249249

250250
# If the collider is with a mob

getting_started/first_3d_game/07.killing_player.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Finally, the longest script, ``Player.gd``:
384384
var collision = get_slide_collision(index)
385385

386386
# If the collision is with ground
387-
if (collision.get_collider() == null):
387+
if collision.get_collider() == null:
388388
continue
389389

390390
# If the collider is with a mob

getting_started/first_3d_game/09.adding_animations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Here's the *Player* script.
358358
var collision = get_slide_collision(index)
359359

360360
# If the collision is with ground
361-
if (collision.get_collider() == null):
361+
if collision.get_collider() == null:
362362
continue
363363

364364
# If the collider is with a mob

0 commit comments

Comments
 (0)