房间内玩家对象管理单独做进新模块netPlayer,为未来消息气泡和发表情做准备
This commit is contained in:
@@ -10,14 +10,9 @@ return{
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1)
|
||||
local N=2
|
||||
for i=1,#PLY_NET do
|
||||
if PLY_NET[i].uid==USER.uid then
|
||||
PLAYERS[1].sid=PLY_NET[1].sid
|
||||
else
|
||||
PLY.newRemotePlayer(N,false,PLY_NET[i])
|
||||
N=N+1
|
||||
end
|
||||
PLAYERS[1].sid=netPLY.getSID(1)
|
||||
for i=2,netPLY.getCount()do
|
||||
PLY.newRemotePlayer(i,false,netPLY.getUID(i))
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user