简化resetGameData函数
This commit is contained in:
@@ -131,7 +131,7 @@ function keyDown.pause(key)
|
||||
resetGameData()
|
||||
SCN.swapTo("play","none")
|
||||
elseif key=="p"and(GAME.result or GAME.replaying)and #PLAYERS==1 then
|
||||
resetPartGameData(true)
|
||||
resetGameData(true)
|
||||
SCN.swapTo("play","none")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -202,7 +202,7 @@ function Tmr.play(dt)
|
||||
elseif P1.keyPressing[10]then
|
||||
restartCount=restartCount+1
|
||||
if restartCount>20 then
|
||||
resetPartGameData()
|
||||
resetGameData()
|
||||
return
|
||||
end
|
||||
elseif restartCount>0 then
|
||||
|
||||
Reference in New Issue
Block a user