整理代码,网战和普通游戏复用几个函数

This commit is contained in:
MrZ626
2021-02-11 01:25:20 +08:00
parent 950a6b42c2
commit e6cea306c1
4 changed files with 70 additions and 113 deletions

View File

@@ -132,10 +132,10 @@ local swap={
}--Scene swapping animations
function SCN.swapTo(tar,style)--Parallel scene swapping, cannot back
if scenes[tar]then
local S=SCN.stat
if not SCN.swapping and tar~=SCN.cur then
if not style then style="fade"end
SCN.swapping=true
local S=SCN.stat
S.tar,S.style=tar,style
S.time,S.mid,S.draw=unpack(swap[style])
end