mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user