改回部分测试代码,可以进房间,准备修改房间内命令
This commit is contained in:
@@ -273,7 +273,7 @@ function NET.TICK_WS_play()
|
|||||||
NET.roomList=res.roomList
|
NET.roomList=res.roomList
|
||||||
_unlock("fetchRoom")
|
_unlock("fetchRoom")
|
||||||
elseif res.action==2 then--Join(create) room
|
elseif res.action==2 then--Join(create) room
|
||||||
-- loadGame("netBattle",true,true)
|
loadGame("netBattle",true,true)
|
||||||
_unlock("enterRoom")
|
_unlock("enterRoom")
|
||||||
elseif res.action==3 then--Leave room
|
elseif res.action==3 then--Leave room
|
||||||
SCN.back()
|
SCN.back()
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ function scene.keyDown(k)
|
|||||||
LOG.print("Can't enter private room now")
|
LOG.print("Can't enter private room now")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
NET.enterRoom(NET.roomList[selected].id)--,password
|
NET.enterRoom(NET.roomList[selected].rid)--,password
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user