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
This commit is contained in:
Jesus
2023-10-06 14:02:30 +03:00
committed by GitHub
parent b4fdcc6376
commit 16015bbfcf
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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