Exemplo n.º 1
0
    public void RoomOwnerStartGameRequest(int fd)
    {
        ProtocolNetRequest req = new ProtocolNetRequest();

        req.cmd = (int)NetRequestType.ROOMOWNERSTARTGAME;
        RoomOwnerStartGame roomOwnerStartGame = new RoomOwnerStartGame();

        roomOwnerStartGame.fd = fd;
        socket.sendMSG(PBCSerialize.Serialize(req));
    }
Exemplo n.º 2
0
    IEnumerator StartGameRequest()
    {
        yield return(new WaitForSeconds(3));

        ProtocolNetRequest req = new ProtocolNetRequest();

        req.cmd = (int)NetRequestType.ROOMOWNERSTARTGAME;
        RoomOwnerStartGame data = new RoomOwnerStartGame();

        data.fd = ownerFd;
        req.roomOwnerStartGame = data;
        ConnectSocket.getSocketInstance().sendMSG(PBCSerialize.Serialize(req));
    }