瀏覽代碼

Merge pull request #413 from Dillybob92/patch-3

Update background_loading.rst
Rémi Verschelde 8 年之前
父節點
當前提交
02d55cc95f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      learning/features/misc/background_loading.rst

+ 1 - 1
learning/features/misc/background_loading.rst

@@ -290,7 +290,7 @@ Example:
     if queue.is_ready("res://level_1.xml"):
         show_new_level(queue.get_resource("res://level_1.xml"))
     else:
-        update_progress(queue.get_process("res://level_1.xml"))
+        update_progress(queue.get_progress("res://level_1.xml"))
 
     # when the user walks away from the trigger zone in your Metroidvania game:
     queue.cancel_resource("res://zone_2.xml")