整理代码
This commit is contained in:
@@ -62,7 +62,7 @@ function LIGHT.draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function LIGHT.clear()
|
function LIGHT.clear()
|
||||||
for i=#Lights,1,-1 do
|
for i=1,#Lights do
|
||||||
Lights[i].blackCanvas:release()
|
Lights[i].blackCanvas:release()
|
||||||
Lights[i].shadowCanvas:release()
|
Lights[i].shadowCanvas:release()
|
||||||
Lights[i].renderCanvas:release()
|
Lights[i].renderCanvas:release()
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ end
|
|||||||
|
|
||||||
--Remove positive integer index of table
|
--Remove positive integer index of table
|
||||||
function TABLE.cut(G)
|
function TABLE.cut(G)
|
||||||
for i=#G,1,-1 do
|
for i=1,#G do
|
||||||
G[i]=nil
|
G[i]=nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user