瀏覽代碼

Fixed a wording error in one of the BaseScript.lua (#129)

**Change Summary:**
* Fixed one of the function names in the Area: Moving entity using Lua script -> BaseScript.lua.

Signed-off-by: Artur Zięba <[email protected]>
Artur Zięba 2 年之前
父節點
當前提交
dc2002e867
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      testing-guidance/workflow-tests/scripting/lua-scripting-tests.md

+ 2 - 2
testing-guidance/workflow-tests/scripting/lua-scripting-tests.md

@@ -230,7 +230,7 @@ function BaseScript:OnActivate()
 end
 
 --OnHeld is activated when an input is being held or applied constantly (as in the case of mouse movement)
-function PlayerScript:OnHeld(inputValue)
+function BaseScript:OnHeld(inputValue)
 	--Create a reference to the currently used input
 	local currentBusId = InputEventNotificationBus.GetCurrentBusId();
 	
@@ -352,4 +352,4 @@ end
 return ReceiveEvent
 ```
 </p>
-</details>
+</details>