update handling of Lua assets
This commit is contained in:
21
Sample/Lua/example.lua
Normal file
21
Sample/Lua/example.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
local dir = true
|
||||
local minY = -300
|
||||
local maxY = -25
|
||||
|
||||
function doSomething(first, other)
|
||||
local pos = first.position
|
||||
|
||||
if dir then
|
||||
pos.y = pos.y + 10
|
||||
if pos.y >= maxY then
|
||||
dir = false
|
||||
end
|
||||
else
|
||||
pos.y = pos.y - 10
|
||||
if pos.y <= minY then
|
||||
dir = true
|
||||
end
|
||||
end
|
||||
|
||||
first.position = pos
|
||||
end
|
||||
10
Sample/Lua/example.lua.meta
Normal file
10
Sample/Lua/example.lua.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2080a81a20451b74bb4fed47cde1eb64
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: d364a1392e3bccd77aca824ac471f89c, type: 3}
|
||||
Reference in New Issue
Block a user