浏览代码

Fixed a not needed ';' in GDScript sample code (#4713)

ck90works 4 年之前
父节点
当前提交
d537782e04
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      getting_started/step_by_step/your_first_game.rst

+ 1 - 1
getting_started/step_by_step/your_first_game.rst

@@ -864,7 +864,7 @@ Note that a new instance must be added to the scene using ``add_child()``.
 
 
     func _on_MobTimer_timeout():
     func _on_MobTimer_timeout():
         # Choose a random location on Path2D.
         # Choose a random location on Path2D.
-        var mob_spawn_location = get_node("MobPath/MobSpawnLocation");
+        var mob_spawn_location = get_node("MobPath/MobSpawnLocation")
         mob_spawn_location.offset = randi()
         mob_spawn_location.offset = randi()
 
 
         # Create a Mob instance and add it to the scene.
         # Create a Mob instance and add it to the scene.