实现开始游戏信号与切换进游戏状态创建玩家

This commit is contained in:
MrZ_26
2022-10-21 00:16:15 +08:00
parent dc1973e049
commit 9a4e8ab4ec
3 changed files with 53 additions and 60 deletions

View File

@@ -18,11 +18,11 @@ return{
GAME.modeEnv.allowMod=false
GAME.modeEnv.task=marginTask
local L=TABLE.copy(NETPLY.list)
local L=TABLE.shift(NETPLY.list,0)
local N=1
for i,p in next,L do
if p.uid==USER.uid then
if p.connected then
if p.playMode=='Gamer' then
PLY.newPlayer(1)
N=2
end
@@ -31,7 +31,7 @@ return{
end
end
for _,p in next,L do
if p.connected then
if p.playMode=='Gamer' then
PLY.newRemotePlayer(N,false,p)
N=N+1
end