微调test模块

This commit is contained in:
MrZ626
2021-11-02 17:35:10 +08:00
parent a34a3051a3
commit f6944dc223
3 changed files with 15 additions and 16 deletions

12
Zframework/test.lua Normal file
View File

@@ -0,0 +1,12 @@
local TEST={}
--Wait for the scene swapping animation to finish
function TEST.switchSCN()
while SCN.swapping do YIELD()end
end
function TEST.wait(frames)
for _=1,frames do YIELD()end
end
return TEST