瀏覽代碼

Swap `extends` line with `class_name` to follow GDScript style guide (#5573)

Markus Sauermann 3 年之前
父節點
當前提交
dd10dff974
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tutorials/best_practices/scenes_versus_scripts.rst

+ 2 - 1
tutorials/best_practices/scenes_versus_scripts.rst

@@ -209,8 +209,9 @@ In the end, the best approach is to consider the following:
     .. code-tab:: gdscript GDScript
 
       # game.gd
-      extends Reference
       class_name Game # extends Reference, so it won't show up in the node creation dialog
+      extends Reference
+
       const MyScene = preload("my_scene.tscn")
 
       # main.gd